Jump to content

ViktorNguyen

Members
  • Posts

    17
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ViktorNguyen

  1. My entity's function getCollisionBox not fire when it collide with other entity. getCollisionBox only fire when i use move function
  2. Which event or function handle when entity collide with block?
  3. i found that entities has custom model always extend from livingEntity. am i missing any entity which have custom model but extend from Entity instead of livingEntity?
  4. and where should i put my json model file, or i have to create a model class
  5. i just create an ArrowEntity Extended from AbstractArrowEntity. how can i add custom model to it??
  6. i want to add a trident at player position but nothing happen. @SubscribeEvent public void onClientTickEvent(final TickEvent.ClientTickEvent event) { if(event.phase != TickEvent.Phase.END) return; Minecraft minecraft = Minecraft.getInstance(); if(minecraft.player == null) return; PlayerEntity player = minecraft.player; ItemStack mainHand = player.getHeldItemMainhand(); if(KeyBindingHandler.throw_saber.isPressed() && mainHand.getItem() instanceof BeamSaber) { TridentEntity trident = new TridentEntity(minecraft.world,player,mainHand); minecraft.world.addEntity(trident); } }
  7. [1.15.2] i forgot to add the version to this topic title
  8. Do i need to use Deferred Registry to registry key bind
  9. i can't find addPropertyOverride function in Item Class anymore. did they replace it with others name?
  10. I forgot to mention the version:1.15.2
  11. I have no idea how trident only deal damage when thrown but not return.
  12. i'll check that you. thank you so much
  13. I have an item which needs to change its model based on NBT. How can i do that? Anyone help with this will be greatly appreciated but if you do intend to leave an answer please be patient and leave a well informed detailed response or please link a source code example as reference. Thanks!
×
×
  • Create New...

Important Information

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