Started by
mangamaniacs2064
on
Topic category: Help with Minecraft modding (Java Edition)
i need help to make a block that have an energy variable..
i use global variable but it increase the var everywehre so any block i look into have the same number..
for example i increase by 1 the variable when i right click on it.
but all the blocks have the same numbers : 1...
i want each block to have each own variable number.
You have to save the variable in TileEntity for each block.
ok i am trying the mcreator but i am new in this...
how can i try it on tileentity? juste give me a little explanation of what i have to do... i want to test it then
what i mean is where can i use the tile entity option.. i am trying to find it..
You have to do it manually. Make a class that extends TileEntity, give it its function and register it on init.
so i have to code it? i will try to find tutorial for that