Everything posted by Draco18s
-
Enum Duplicate Names?
If you can't figure out how to check one list of items against another list of items and avoid duplicates, I can't help you. You need to go learn basic Java.
-
[1.12.2] Vanilla mobs with custom loot table [SOLVED]
new LootCondition[0] is an array, you need to pass in a list of conditions (in this case, an array of size 1), not a single one, unboxed.
-
[SOLVED] [1.12.2] Custom TileEntity
You need to mimic what the furnace does (assuming single input + fuel) or what the crafting table does (any number of inputs or outputs greater than 1). I have something similar here: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/recipes/OreProcessingRecipes.java#L35-93
-
[SOLVED] [1.12.2] Custom TileEntity
You need to create a new class that extends GuiContainer. Look at the vanilla examples of such. You will also need one that extends Container (again, look at the vanilla examples). And a class that implements IGuiHandler
-
Furnace Broken When Extracting Items
Okay then. In any case, the code you've posted cannot destroy blocks.
-
Enum Duplicate Names?
"Huh, I want to know if this object is the same as this other object. Maybe I should compare them."
-
Furnace Broken When Extracting Items
Do not use setHeldItem You want to insert or extract items from an Inventory? Step 1: Use GetCapability to get the inventory Step 2: Use the insert/extract methods to insert and extract Also, what the bollocks? Why is this method in your entity class at all?
-
Enum Duplicate Names?
Pretty much this. We can't actually tell what's going on under the hood (without reading the code, assuming that we even understand it if we do, and that there isn't additional magic going on deep down in the JVM). We just have to accept that it does what it does in a way that does what we actually want to do. And given what you are trying to do, and what this function actually does, work at cross purposes, you shouldn't use it.
-
Enum Duplicate Names?
Well, addCreatureType is definitely not how you examine what the possible values are.
-
Crash when initializing a block
-
[1.12.2] Vanilla mobs with custom loot table [SOLVED]
That is not how that event works. For 1, your function is a void function, meaning it returns nothing and you're trying to return whatever LootTableHandler.DRAGON_LOOT is. Two, that's not what that event is for. Yes, its to modify the drops, but it does so outside the context of loot tables.
-
Enum Duplicate Names?
Then stop using it. It does not do what you think it does (which is clearly "who knows what")
-
Enum Duplicate Names?
You don't know what EnumHelper does, do you?
-
Help on Item Registries
It's a method in the Item class It goes in your item's class.
-
Crash when initializing a block
That line cannot cause that error. Post your entire mod, preferably on a complete git repository, so I can run it.
-
Crash when initializing a block
...and which line is like 24?
-
Help on Item Registries
Override getSubItems()
-
Crash when initializing a block
Caused by: java.lang.ArrayIndexOutOfBoundsException: 5 at BlockBase.java:24 You have not posted this code.
-
[1.12] Make custom grass block use the colour map
You need to register the item for having a color tint as well.
-
[1.12.2] Send Message to Player
1) You have to do it server side 2) Use the server's player list
-
1.11.2 Creating custom Ore. [SOLVED]
This thread is a year old, if it didn't solve your problem start a new thread which contains all relevant info, such as your code and any errors.
-
Simple Ore Dictionary Question
That would be correct.
-
1st time modder..help me pls
Note that if you are on 1.11 or newer the file name should be en_us.lang (all lower case) due to pack format 3 enforcing an all lower case format for all resources.
-
[1.12.2] Creating smelting recipe [SOLVED]
You realize "common" is both sides, right?
-
[1.12.2] Send Message to Player
This is the client. Not the server. This will crash the server. The only player here will be the local user.
IPS spam blocked by CleanTalk.