Started by
Redlarkk
on
Topic category: Help with Minecraft modding (Java Edition)
Hi, i want to add a lamp block to my mod that has colour variations and a player can turn on and off by right clicking. I want to know how to do this without having to create two separate blocks for each colour? if it's even possible
Well you will you need to do some custom coding. You will need to create a block state for your block and change it when player interacts with it.
I can explain how to make block state controllable with NBT tags(You will be able to change them just by changing the NBT tags through your procedures)
or... I can explain how to make without any procedures.
You will need to know a little bit of java for both
could u explain the NBT tag method to me
Of course! But not now sorry :/ It’s very late in my country.