Hey, I have got help to make so people can't set a green glass next to a cobblestone wall, but when they do will it make the money machine I have coded it to. (First section) How can I fix it so it can't set the glass block and don't make the money machine? :3 (And how can I make a ID or something to it so the player/uuid can have more then 1? So the first machine is "Money machine #1" Next #2 and #3)
Thx. <3
Thx. <3
code_language.skript:
on block place:
if player can build at event-block:
if player is holding locked chest:5 with name "&a&lPENGE MASKINE BASIC":
remove locked chest:5 with name "&a&lPENGE MASKINE BASIC" from player's inventory
wait 1 second
set {Basic.minmine.%uuid of player%} to 1
set {Basic.ejer.%uuid of player%} to true
set {Basic.%event-block%.%uuid of player%} to false
set event-block to cobblestone wall
wait 5 ticks
set block above event-block to locked chest:5
wait 5 ticks
loop blocks in radius 1 of event-block:
if loop-block is locked chest:5:
set block above loop-block to cobblestone wall
Message "&a&lPENGE MASKINE&8: &7Maskinen er i gang, så nu vil du tjente penge i mens du er online."
loop blocks in radius 2 of event-block:
if loop-block is locked chest:5:
set {Basic.%loop-block%.%uuid of player%} to false
on block place:
if player can build at event-block:
loop all blocks in radius 1 of event-block:
if loop-block is locked chest:5:
cancel event
stop loop