mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 11:54:47 +00:00
ScriptEntity:
-Added setInvisible, setSneaking, setSprinting, and getUniqueID() functions. ScriptLivingBase: -Added getLookVec() function ScriptPlayer: -Added stopUsingItem(), clearItemInUse(), playSound(name,volume,pitch), mountEntity(entity), dropOneItem(shouldDropStack), canHarvestBlock(block), interactWith(entity) functions
This commit is contained in:
1 parent
8db16459df
commit
d41b3b7a7e
3 files changed
+50
-4
No files matched your search
@@ -117,6 +117,10 @@ public class ScriptLivingBase<T extends EntityLivingBase> extends ScriptEntity<T
|
||||
public void swingHand(){
|
||||
entity.swingItem();
|
||||
}
|
||||
|
||||
public String getLookVec(){
|
||||
return entity.getLookVec().toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Works the same as the <a href="http://minecraft.gamepedia.com/Commands#effect">/effect command</a>
|
||||
|
||||
Reference in new issue
Block a user