-
Posts
16559 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Draco18s
-
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.
-
I wonder what the Item.Properties class does.
-
@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
-
You store it in a tile entity
-
He means his in-game name.
-
Well, that's all 1.12 code, so old and out of date. But he used a tile entity renderer to do it.
-
...And make sure that the log wasn't part of a village structure.
-
[1.15.2] How do I create a crafting recipe which damages an item?
Draco18s replied to superminerJG's topic in Modder Support
That might be the Forge bucket. Look for the MilkBucket. -
1.15.2 Help Updating BooleanProperty on server
Draco18s replied to kpGamer's topic in Modder Support
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. -
Have fun: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/HarderOres.java#L205-L241
-
1.15.2 Help Updating BooleanProperty on server
Draco18s replied to kpGamer's topic in Modder Support
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. -
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?)
-
[1.15.2] How do I create a crafting recipe which damages an item?
Draco18s replied to superminerJG's topic in Modder Support
Look at the bucket. Yes it doesn't damage the item, but t does override the relevant method. -
[1.15.2] How do I create a crafting recipe which damages an item?
Draco18s replied to superminerJG's topic in Modder Support
Your hammer needs to overrhide hasContainerItem and getContainerItem. In the second take in the passed stack, tryDamage it, and return it. -
[1.15.2] MinecraftForge Environment for contributing
Draco18s replied to Niprow's topic in Modder Support
How about taking the thing I figured out in the last post and running it? ./gradlew :forge:tasks And checking for anything IntelliJ related. -
[1.15.2] MinecraftForge Environment for contributing
Draco18s replied to Niprow's topic in Modder Support
This may help: -
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.
-
[1.12.2] Texture disappears after switch to BlockSand class
Draco18s replied to elledeejay's topic in Modder Support
Show your code and json files. Also post the latest log file. -
[solved] Can i replace textures in a blockstate-json-file?
Draco18s replied to Drachenbauer's topic in Modder Support
Yes. -
[1.15.2] How to remove water with waterlogged block?
Draco18s replied to KTRD's topic in Modder Support
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 -
[solved] Can i replace textures in a blockstate-json-file?
Draco18s replied to Drachenbauer's topic in Modder Support
You can't. -
[1.14.4] What is the best way to remove vanilla recipes?
Draco18s replied to iZerus's topic in Modder Support
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 -
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.