-
Posts
53 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Zamion101
-
I'm working on GUI's and i stuck in drawing texture like furnace burn animation. I don't figure out how to draw animations properly. My GUI class My GUI Texture Droplets (gray) Start at x:80 y:30 Droplets (Colored) Start at x:176 y:0 and i want colored droplets render from up to bottom like squeezing something and droplets fall. Note: tileentity.getField(1) returns recipe time like '200' tick
-
Use for registering models/texture in ModelRegistryEvent.
-
You're rigth sorry my bad. Lists is more clear than adding all blocks staticly, don't you think like that?
-
First ALL Items has Model so DON'T use IHasModel. Second use ModelLoader#setCustomModelMesher instead of Main#proxy#registerItemRender (Use in init stage) ModelLoader.setCustomModelResourceLocation([YOUR_ITEM],0,new ModelResourceLocation([YOUR_ITEM].getRegistryName(),"inventory")); And while registering items/blocks use List! don't use toArray() and you must enter your array size new Block[0] creates array with 0 size use new Block[ModBlocks.BLOCKS.size] ! @Draco18s anoher IHasModel user!
-
I'm happy if I could help you. Have a nice coding.
-
in your assets/<MOD_ID>/recipes json files registering automatically you shouldn't use GameRegistry and in your RecipeRegistry you forget to enter your modid to @EventBusSubscriber. It should looks like @EventBusSubscriber(modid = "[MOD_ID]") Also i prefer minecraft:crafting_shaped/shapeless rather than forge:ore_shaped.
-
Can someone help me with this problem? Transparent block
Zamion101 replied to michaelnaamloos's topic in Modder Support
Add this methods to your Block class isFullCube returns false isNormalCube return false isTranslucent returns true isOpaqueCube returns false And setLightOpacity(0) in constructor. -
Ohh i forget setLightOpacity should be 0 and add isNormalCube to code and return false And That's why we hate Mcreator this programs creates nearly unreadable codes.
-
items not showing in game or JEI [SOLVED | 1.12]
Zamion101 replied to urlordjames's topic in Modder Support
Have a nice modding. -
isFullCube must return false isTranslucent must return true
-
items not showing in game or JEI [SOLVED | 1.12]
Zamion101 replied to urlordjames's topic in Modder Support
You can use for statement Example: for(Item item : ModItems.Items){ event.getRegistry().register(item); } And code looks correct now. -
items not showing in game or JEI [SOLVED | 1.12]
Zamion101 replied to urlordjames's topic in Modder Support
Why you using this? You should use List instead of Array. -
items not showing in game or JEI [SOLVED | 1.12]
Zamion101 replied to urlordjames's topic in Modder Support
You forget to add MOD_ID to @Mod.EventBusSubscriber It should be like this; @Mod.EventBusSubscriber(modid = "<MOD_ID>") -
items not showing in game or JEI [SOLVED | 1.12]
Zamion101 replied to urlordjames's topic in Modder Support
Did you registered in RegistryEvent#Register<Item> ? https://mcforge.readthedocs.io/en/latest/concepts/registries/ -
It's because MrCrayfish Model Creator. My advice use Blockbench Modeler. Have a nice moddings.
-
Exactly. But once if you don't know java you must learn.
-
Yes.
-
You should create new class named RegistrationHandler and write codes inside this class for example class should be like that @Mod.EventBusSubscriber(modid = Lamps.MODID) public class RegistrationHandler{ [...] Methods [...] }
-
You should seperates Classes for Annotations 1 more class doesn't drop your fps
-
You can look from my codes My RegistryUtils: https://gist.github.com/Zamion101/2c24d38fc620e575c2037e4d09bce421 My Blocks Class: https://gist.github.com/Zamion101/c9a93cf0229718b7f0c70273896f4358 My BlockBase: https://gist.github.com/Zamion101/939e5656d7a27e38871f12d785f07761
-
Looks good but you should use setRegisteryName(WhiteLamp.getRegisteyName()) instead of setRegisteryName(Lamps.MODID, WhiteLamp.NAME)
-
You can use Registery.registerItem(new ItemBlock([YOUR_BLOCK]).setRegistryName(Objects.requireNonNull([YOUR_BLOCK].getRegistryName())));
-
@Mod.EventBusSubscriber(modid = "[MOD_ID]") publicclass Registery{ static List<Item> itemList = new ArrayList<>(); public static void registerItem(Item item){ itemList.add(item); } @SubscribeEvent public static void registerModels(ModelRegistryEvent event){ registerRender(); } private static void registerRender() { for(Item tmp : itemList){ if(tmp == null || tmp == Items.AIR)continue; ModelLoader.setCustomModelResourceLocation(tmp,0,new ModelResourceLocation(tmp.getRegistryName(),"inventory")); }} } You must register items in "preInit" @Mod.EventHandler public void preInit(FMLPreInitializationEvent event){ Registery.registerItem([YOUR_ITEM]); } you need the change [MOD_ID] with your mod id!
-
https://mcforge.readthedocs.io/en/latest/models/using/#item-models
-
[1.12.2] Compatibility with other mods [Closed]
Zamion101 replied to Legenes's topic in Modder Support
I don't know it is the best way to do but it will be helpful for you.