Everything posted by Draco18s
-
[1.10.2] Apply potion effect on sword hit.
Mods that add potions may not have the same ID every time. Also this thread is over a year old.
-
Having trouble with keybindings descriptions
The reason it makes zero sense is that Hypixel is a specific multiplayer server that hasn't updated their server jar in forever. Hence any mod not made for 1.8.9 is worthless. (They should still update)
-
[1.12.2] Models / Texture on wrong block [SOLVED]
What you probably want: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L102 For sate-based items where each state has a different item (wood type, wool color, etc): https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L70
-
How does forge work?
Not quite. I believe Forge Mod Loader is actually a layer that allows Mod Loader mods to work with a Forge installation. As a result, the two systems "merged" (originally just compatible, but Mod Loader is no longer, while Forge still exists)
-
[1.12.2] Models / Texture on wrong block [SOLVED]
Unlocalized name is for displaying the block's name in the inventory. That is it. Nothing else.
-
[1.12.2] Prevent sand/gravel blocks from falling
There is no hook for this.
-
1.12 lang file entries for multi state blocks
Or with loops. foreac(EnumWhatever val in EnumWhatever.values) { registerBlock(new Block(val)); }
-
[SOLVED] Wrench fastest implementation
Why do this? This code is already running in the block at that position. It is equivalent to this instanceof IWrenchable Which you already know is true.
-
[1.12.2] Trouble Generating ItemStacks From Custom LootTable
So you need to follow the execution of the vanilla code when you pass it in your data and figure out why it is not returning what you expect.
-
[1.12.2] Trouble Generating ItemStacks From Custom LootTable
There are no other methods on that line, so yes.
-
[1.12.2] Trouble Generating ItemStacks From Custom LootTable
You're going to have to examine that method.
-
[1.12.2] Trouble Generating ItemStacks From Custom LootTable
list = loottable.generateLootForPools(world.rand, context.build()); That is returning a zero-sized list.
-
[1.12.2] Trouble Generating ItemStacks From Custom LootTable
And your debugging messages..?
-
[1.12.2 Eclipse] Making a player drop their armor when custom mob attacks them.
Put the break point on another line.
-
[1.12.2 Eclipse] Making a player drop their armor when custom mob attacks them.
No, that is you not using the debugger correctly.
-
[SOLVED][1.12.2] Issues with multistate blocks models
No. You need to change your block class to deal with dropped items correctly. Namely, not return 1 from damageDropped() when dropping the unrefined dust. If you can't handle that, override getDrops() instead
-
[SOLVED][1.12.2] Issues with multistate blocks models
So WILD_DUST drops UNREFINED_DUST, and when it does so, it's icon is the purple and black cube? Yeah, you dropped it with a metadata of 1 and you registered an icon for metadata of 0.
-
[SOLVED][1.12.2] Issues with multistate blocks models
No, you registered it like this:
-
[SOLVED][1.12.2] Issues with multistate blocks models
Blocks that have variants defined by the blockstate json file need to specify their variant string as their model, not "inventory" https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L68-L71
-
Client writing NBT-Data to ItemStack and syncing with Server
/me face desk Don't use that. Use your own packets.
-
Client writing NBT-Data to ItemStack and syncing with Server
This is because in creative mode the client has authority on inventory changes. Through the magic of packets.
-
[1.12.2 Eclipse] Making a player drop their armor when custom mob attacks them.
Item stacks are never null: No idea why dropping a stack of air is causing your diamond helmet to pop off though.
-
AOE/3x3 pickaxe?
1.7.10 is no longer supported here. Update. Those are SRG names. They're functions that have not yet received a human-readable name via MCP.
-
[1.12.2 Eclipse] Making a player drop their armor when custom mob attacks them.
That's not what I asked. This line: Is this true when it executes?
-
[1.12.2 Eclipse] Making a player drop their armor when custom mob attacks them.
Two things: 1) Are you sure that the item stack you're getting is not empty? 2) That's not the only way to make an item slot empty
IPS spam blocked by CleanTalk.