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

eggpasta

Members
  • Content Count

    90
  • Joined

  • Last visited

Everything posted by eggpasta

  1. Hmm ok well it's a start. so we can know if the method is triggering, add System.out.println("Triggered") Under the fire code and then run the code and check the logs for Tr
  2. remove event.getEntity() from it and change it to p_77644_3_ and also as @poopoodice said , move the fire code out of the lambda like so p_77644_1_.hurtAndBreak(1, p_77644_3_, (p_220045_0_) -> { p_220045_0_.broadcastBreakEvent(EquipmentSlotType.MAINHAND); }); p_77644_3_.setSecondsOnFire(10);
  3. You have an extra unnecessary bracket after p_22045_0_ also you still dont need the the check if it's embercleave because the method can only fire if it's embercleave so remove the check
  4. For the iteminit error get rid of () -> so it's just FlamingSword::new and for p_220045_0_ it's whatever you put here p_77644_1_.hurtAndBreak(1, p_77644_3_, (p_220045_0_) -> { so check you dont have any typos
  5. As @Draco18s was saying, your FlamingSword class needs to extend SwordItem
  6. p_77644_3_.if (event.getEntity().equals(ItemInit.EMBERCLEAVE.get())) Remove this just make it p_77644_3_.setSecondsOnFire(10); so that the method look like this: @Override public boolean hurtEnemy(ItemStack p_77644_1_, LivingEntity p_77644_2_, LivingEntity p_77644_3_) { p_77644_1_.hurtAndBreak(1, p_77644_3_, (p_220045_0_) -> { p_220045_0_.broadcastBreakEvent(EquipmentSlotType.MAINHAND); p_77644_3_.setSecondsOnFire(10) }); return true; } As the checking has already been done What other errors are you getting?
  7. I have a custom mushroom block and the hitbox loads fine but for some reason even though there is no black in the texture it renders like this:
  8. Oh ok you don't have an item class so you will need to make one, So create a new class called FlamingSword inside it put public class FlamingSword extends SwordItem{ public FlamingSword() { super(ModItemTier.EMBERCLEAVE, 5, -2.8f, new Item.Properties().tab(ItemGroup.TAB_COMBAT)); // TODO Auto-generated constructor stub } @Override public boolean hurtEnemy(ItemStack p_77644_1_, LivingEntity p_77644_2_, LivingEntity p_77644_3_) { p_77644_1_.hurtAndBreak(1, p_77644_3_, (p_220045_0_) -> { p_220045_0_.broadcastBreakEvent(EquipmentSlotType.MAINHAND);
  9. Figured it out block was not registered properly
  10. So i created a tag with the following code but i get [13:18:21] [Render thread/WARN] [ne.mi.re.GameData/REGISTRIES]: Missing minecraft:block: mcore:dark_dirt { "replace": false, "values": [ "mcore:dark_dirt" ] } It seems to thing that i am referencing a vanilla block
  11. Ok i found the Text element but now how do i render it in the event??
  12. Ok but how do you get the player?
  13. How would you get the player that it's being rendered to?
  14. How would you render text to the player's screen?
  15. like in the code when something happens instead of coding a trigger for it
  16. But the banana does not get removed from me after 30 ticks
  17. When i try to build my mod i get the following error: FAILURE: Build failed with an exception. * What went wrong: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/6.8.1/userguide/gradle_daemon.html Process command line: C:\Program Files (x86)\Java\jre1.8.0_271\bin\java.exe -Xmx3G -Dfile.encoding=windows-1252 -Duser.country=CA -Duser.language=en -Duser.variant -cp C:\Users\ewanj\.gradle\wrapper\dists\grad
  18. adding this worked on one if my items but on the other still nothing happens https://github.com/BananaSquares/Forge-Mod/blob/master/src/main/java/mod/trianglesinpoo/mcores/Banana.java
  19. In your item class override the hitEntity()(might be called something else depending on your version) method If you don't understand share your item class and i will show you
  20. What is the 1.16.5 version of the method?
  21. If you are using SwordItem it has a method public boolean hurtEnemy(ItemStack p_77644_1_, LivingEntity p_77644_2_, LivingEntity p_77644_3_) { which you could override but make sure to add the lines of code that were previously there as well as your extra code p_77644_1_.hurtAndBreak(1, p_77644_3_, (p_220045_0_) -> { p_220045_0_.broadcastBreakEvent(EquipmentSlotType.MAINHAND); });
  22. so i have an item : https://github.com/BananaSquares/Forge-Mod/blob/master/src/main/java/mod/trianglesinpoo/mcores/AnimatedItem.java But for some reason when i finish using the item finishUsingItem is not getting called
×
×
  • Create New...

Important Information

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