Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Trigonaut

  • Rank
    Tree Puncher
  1. I am encountering an error on my modded item's onItemRightClick action, but only when the mod is built to a jar and run in normal minecraft. This error doesn't happen when running from the project in IntelliJ. The item works as intended. I am using the exact same forge version in both instances. (35.1.0) What might be the cause for an error 'in the field' which isn't produced in the IDE? Here is the class which causes the error: public class HookshotItem extends Item implements IVanishable { public HookshotItem(Item.Properties builder) { super(builder);
  2. I am trying to change the way damage to the player is affected by the game's difficulty. At the beginning of the vanilla PlayerEntity.attackEntityFrom() method (where these calculations are normally applied), there is a Forge hook for a LivingAttackEvent, but it doesn't seem offer any way to change the damage being dealt by that attack. I could probably accomplish what I'm looking for by copying all of the code from PlayerEntity.attackEntityFrom() and LivingEntity.attackEntityFrom(). into my subscribed method, but there must be a better way. How best can I override/bypass
  3. I am trying to add a new type of shield, but its json model does not seem to respect the 'blocking' predicate even though the item extends ShieldItem. How should I make the blocking predicate set to 1 when the shield is used, like the vanilla shield?
  4. I am trying to create an entity which mimics the player using an item (placing a block, using a bucket, etc.). I have a class VirtualPlayerEntity extends PlayerEntity, which is passed into the onItemRightClick method for the item my entity is holding. My problem arises when that item is an empty bucket, used on a fluid block. In the onItemRightClick method for the BucketItem class I get the error: <com.trigonaut.mod.entity.VirtualPlayerEntity cannot be cast to net.minecraft.entity.player.ServerPlayerEntity> caused by the FILLED_BUCKET criteria trigger.
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.