-
[1.12.2 ] Approaches to create many items of one kind but with different nbt data by using one instance of that item class
For now, there is no time for me to code, I will try it tomorrow. Anyway, thx for the hint
-
[1.12.2 ] Approaches to create many items of one kind but with different nbt data by using one instance of that item class
so can I use enum class to set different meta number to define different items? For blocks, it provides the function to get data from meta. For items, I do not know whether it is enough to just override gueSubItems() function. Maybe I can write down my individual class to realize?
-
[1.12.2 ] Approaches to create many items of one kind but with different nbt data by using one instance of that item class
for code example, right now, what i have done is like this: public static final ItemChip ID_CHIP_1 = null; public static final ItemChip ID_CHIP_2 = null; but what i want to realize is like this public static final ItemChip ID_CHIP = null; and this line of code will give me enough items in my tab
-
[1.12.2 ] Approaches to create many items of one kind but with different nbt data by using one instance of that item class
Maybe the problem is not explained clearly in the topic. For short, I am going to create a number of chips to act as keys for some machine, but those chips are different instances of one class with different nbt data to make some differences. Thus, using this approach, there need huge codes to realize registry events and I think that is kind of unpractical. Therefore, I want to know whether there is an efficient way to realize this thing because, for blocks, I only need to create a PropertyEnum variable and an Enum class to write down different block states. I really appreciate any help or hints
-
[1.12.2 MC Mod Custom Furnace] Program always crashes after running
and these are TestFurnace and EventSubscriber class TestFurnace.java EventSubscriber.java
-
[1.12.2 MC Mod Custom Furnace] Program always crashes after running
After I coded corresponding codes for a custom furnace, the program always crashes and console showed such crash report. I really appreciate it if someone can handle my confusion crash-2019-04-12_17.53.14-client.txt
IPS spam blocked by CleanTalk.