Everything posted by Draco18s
-
Setting Harvest Tool and Harvest level [1.15.2]
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.
-
Setting Harvest Tool and Harvest level [1.15.2]
I wonder what the Item.Properties class does.
-
Knockback event...
@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
-
Creating stumps in minecraft
You store it in a tile entity
-
Change pseudo
He means his in-game name.
-
Creating stumps in minecraft
Well, that's all 1.12 code, so old and out of date. But he used a tile entity renderer to do it.
-
Creating stumps in minecraft
...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?
That might be the Forge bucket. Look for the MilkBucket.
-
1.15.2 Help Updating BooleanProperty on server
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.
-
Alter vanilla ore generation strategy
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
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.
-
Small issue
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?
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?
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
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
This may help:
-
How to exactly use IItemTier [1.15.2]
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
Show your code and json files. Also post the latest log file.
-
Wanting to do something along the lines of glowstonedust having a place glowstonewire on ground method?
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.
-
Wanting to do something along the lines of glowstonedust having a place glowstonewire on ground method?
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.
-
[solved] Can i replace textures in a blockstate-json-file?
Yes.
-
[1.15.2] How to remove water with waterlogged block?
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?
You can't.
-
[1.14.4] What is the best way to remove vanilla recipes?
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
-
help me Recipes files.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.
IPS spam blocked by CleanTalk.