Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. The harvest tool you could have found by looking at the method signature. It takes a ToolType value, looking at its definition you would have seen that it was an enum with 3 values. The other takes an int. Looking at existing vanilla code (right click -> find all references) would have turned up what existing blocks used. Cross referencing with the wiki would have matched values with material.
  2. I wonder what the Item.Properties class does.
  3. @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public class RegistryEvents { @SubscribeEvent public void onKb (LivingKnockBackEvent e) { So, two problems. 1) You're using the wrong bus 2) your method isn't static
  4. You store it in a tile entity
  5. He means his in-game name.
  6. Well, that's all 1.12 code, so old and out of date. But he used a tile entity renderer to do it.
  7. ...And make sure that the log wasn't part of a village structure.
  8. That might be the Forge bucket. Look for the MilkBucket.
  9. Ok, so, 1, just use Blocks.POWERED_RAIL. There is zero reason to use string comparison on registry names. Two, I was right. Powered rail will automatically update its own state based on the presence or absence of redstone power in the world. You can't "fool" it into having power when there is none.
  10. Have fun: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/HarderOres.java#L205-L241
  11. Show more of your code. Is this a subclass of powered rail? If so, the parent class is probably resetting it based on the neighboring blocks not providing power.
  12. Here's the question: Which of the two creatures should receive healing when this sword hits: - The Attacker - The Defender "the player" is the wrong answer (what happens if a mob holding your sword hits the player? what if one player hits another? what if a mob holding your sword hits another mob?)
  13. Look at the bucket. Yes it doesn't damage the item, but t does override the relevant method.
  14. Your hammer needs to overrhide hasContainerItem and getContainerItem. In the second take in the passed stack, tryDamage it, and return it.
  15. How about taking the thing I figured out in the last post and running it? ./gradlew :forge:tasks And checking for anything IntelliJ related.
  16. Have an example usage https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/item/ModItemTier.java Just be aware that the suppliers are absolutely required.
  17. Show your code and json files. Also post the latest log file.
  18. Note that BlockNamedItem is a subclass of Item that overrides methods and that glowstone dust is just a regular Item. So my statement is no less false.
  19. No. Redstone's item overrides a method that Glowstone dust's item does not. This only way to get the required behaviour is to use an event, as ChampionAsh already said. Absolutely not. Redstone dust wire does not use a tile entity.
  20. Been a while since I messed with it, but try this: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/block/SluiceOutput.java#L52-L58
  21. Correct. Here's an example: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/data/minecraft/advancements/recipes/misc/bone_meal.json
  22. Unless you absolutely want your crafting recipe to only be craftable in the center of the grid, remove the surrounding spaces. No, recipe input stacks are always treated as size 1.
×
×
  • Create New...

Important Information

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