Mcreator 2020.4 Solar panel

Started by sekret on Sun, 08/02/2020 - 13:51

Topic category: Help with modding (Java Edition)

Last seen on 12:50, 11. Jul 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Mcreator 2020.4 Solar panel
Sun, 08/02/2020 - 13:51

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

Last seen on 19:49, 3. Nov 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Please actually look at the…
Sun, 08/02/2020 - 14:29

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.

Last seen on 12:50, 11. Jul 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'm sorry of course but what…
Sun, 08/02/2020 - 15:27

I'm sorry of course but what is NBT