Started by
KazTeko
on
Topic category: Help with Minecraft modding (Java Edition)
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 :)
Check light level at location y + 1 so you check the above block, not light inside block.
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
its now working thanks for the help been busy with work so have not been able to reply back :) much appreciated
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.
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...