Making a solar pannel issue

Started by KazTeko on

Topic category: Help with modding (Java Edition)

Last seen on 08:55, 4. Nov 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making a solar pannel issue

So im working on making energy into my mod i have a energy variable  set as numbers,

i have made the solar panel block and had a dabble in procedures which is new to me as i have dabbled in java coding but i thought id give MCreator a go but i cant seem to get this to work where the light level and seeing the sky generates the energy value. i think i set it up wrong? can some one help please :)

snipit

 

 

Check light level at…
Sat, 05/16/2020 - 18:34

Check light level at location y + 1 so you check the above block, not light inside block.

Last seen on 16:15, 8. Dec 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you would putt this in a…
Sun, 05/17/2020 - 14:00

you would putt this in a blocks event (on block tick) and not (a block is placed) and what klemen said use Y+1 so your not checking the block its self you also may want to use nbt data if you want each of them to have there own power storage

Last seen on 08:55, 4. Nov 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its now working thanks for…
Tue, 05/19/2020 - 21:20

its now working thanks for the help been busy with work so have not been able to reply back :) much appreciated 

Last seen on 14:00, 14. Nov 2023
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is basic maths man. The…
Wed, 05/20/2020 - 06:55

This is basic maths man.
The NBT tag "energy" starts at 0 when u place the block. You want the energy NBT tag to set to energy^10 but 0^10 = 0 so yes it doesn't work because u suck at maths.

Last seen on 08:55, 4. Nov 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it was not the maths i had…
Thu, 05/21/2020 - 18:48

it was not the maths i had issue with now i got NBT in it its all good, nothing to do with maths mate. like i stated i'm new to the mcreator i did not know i had to use NBT but i do now...