Jump to content

deenkayros

Members
  • Posts

    111
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

deenkayros's Achievements

Creeper Killer

Creeper Killer (4/8)

-1

Reputation

  1. Not exactly, I mean the other animation ...
  2. Hi, How can I force the animation like when you makes a right-click on a block with any tool item (axe, pickaxe, ...) ?
  3. And If I use an existing vanilla variable like "timeUntilPortal" = X while I'm grabbing the entity? where "X" = unusual number ...
  4. I found this code: @SubscribeEvent public void onEntityUpdate(LivingUpdateEvent event) throws InterruptedException { } But I need to get the current player that is grabbing it ... It would be perfect if i can set a "grabber-id" variable on the entity with which to obtain the player.. or How can i do it?
  5. how? ... I refer to a vanilla entity ...
  6. Hi, I need to cancel or make ineffective the onLivingUpdate() event of a specific Entity ... in order to make the Entity totally immobile. Thank in advance. PS: I tried to set the "motion" properties but the entity seems however trying to walk...
  7. Yes, I added this code but nothing to do: entity.motionX = entity.motionZ = entity.motionY = 0.0D; The code is called by the item right click event on the entity ("itemInteractionForEntity") but the entity goes up and down like a glitch ...in short, I need to cancel the event (updateEntity or livingUpdate) where the entity perform the fall ...
  8. I tried to change any value but nothing works.... seems i'm using the wrong methods/fields/functions ...
  9. Hello, I need to grab an entity and keep it stationary in air, i tried this code but it still trying to fall: x = player.posX + player.getLookVec().xCoord; y = player.posY + player.getLookVec().yCoord; z = player.posZ + player.getLookVec().zCoord; entity.prevPosX = x; entity.prevPosY = y; entity.prevPosZ = z; entity.setPosition(x, y, z); entity.fallDistance = 0.0F; entity.onGround = false; entity.isAirBorne = true; entity.timeUntilPortal = 5; entity.setInWeb(); help....
  10. Hello, I need to get the Entity in front to me by Right click Item...
  11. I mean the packet ... but nevermind
  12. Thank You, now works!!! BUT I'm already on server side and I still need to cast the EntityPlayerMP, here my code: @SubscribeEvent public void onPlayerTick(PlayerTickEvent event) { if (!event.player.worldObj.isRemote) { for (int s = 0; s < 9; ++s) { if (event.player.inventory.getStackInSlot(s) != null) { if (event.player.inventory.getStackInSlot(s).getItem() == MyItem) { event.player.inventory.currentItem = s; EntityPlayerMP playerMP = (EntityPlayerMP) event.player; playerMP.inventory.currentItem = s; playerMP.playerNetServerHandler.sendPacket(new S09PacketHeldItemChange(playerMP.inventory.currentItem)); } } } } Also I mean, if I need to send the package anyway?
  13. I can't find the player method "playerNetServerHandler"
  14. Hi, How can I change the current slot selected in hotbar? (not the held item) Thanks in advance ...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.