Started by
sekret
on
Topic category: Help with Minecraft modding (Java Edition)
Mcreator 2020.4 I started creating solar panels how to make them not constantly generate energy but only during the day and when other blocks are not above it
Please actually look at the procedures before asking questions.
Give the block boolean nbt data when it is placed.
Call the nbt data "canPower"
If (not) get block at (x, y + 1, z) is air AND (not) the time is night{
set canPower to true
else set canPower to false.
If canPower is true your block will give out power.
If it is false, it won't.
I hope you connect this variable to the power giving procedure.
I'm sorry of course but what is NBT
You should look around the wiki first
https://mcreator.net/search/content?keys=solar+panel