Procedure Help with a generator style of block

Started by pixelkingliam on Wed, 05/27/2020 - 20:36

Topic category: Help with modding (Java Edition)

Last seen on 21:25, 14. Sep 2020
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Procedure Help with a generator style of block
Wed, 05/27/2020 - 20:37 (edited)

So, im trying to make a block that generates a item every 30 second (600 ticks)

i want it to generate 100 of said item until the block no longer functions

 

https://imgur.com/a/eq6UilQ

Edited by pixelkingliam on Wed, 05/27/2020 - 20:37
That's not the way you would…
Wed, 05/27/2020 - 22:34

That's not the way you would do it.

Use on block tick,

Set an NBT Block Tag tickbarn to get tag tickbarn+1

if get tickbarn/600 and get tickbarn<=60000

then if get item in slot 0<64

add thing in the BlockGUI not player

else send msg is FULL

else

if tickbarn>60000

send message Max uses exeeded

 

P.s. i highlighted different statements

 

Last seen on 21:25, 14. Sep 2020
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
what do you mean by Set an…
Wed, 05/27/2020 - 23:19

what do you mean by Set an NBT Block Tag tickbarn to get tag tickbarn+1? im confused...

Last seen on 21:25, 14. Sep 2020
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
im pretty much confused by…
Wed, 05/27/2020 - 23:47

im pretty much confused by all of it,
if get tickbarn/600 and (wym by and,)get tickbarn<=60000
something visual would help more

sorry it's actually if get…
Thu, 05/28/2020 - 14:10

sorry it's actually if get tickbarn/600=1 and get tickbarn<=60000