#Gen skript help
1 messages · Page 1 of 1 (latest)
oh?
One of the checks
Is seeing if they have the same amount of the item in their hand
Which only happens in creatove
Because in survical you lose 1
You only do 1?
no like when you have more then 1 inyour hand
yes i know but how do i fix it when you have more then 1 in your inventory or smth it doesnt work
It will
You necer check for that
Because this event only work when you place course dirt
That only matters of you are checking if their hand is dirt
But you dont really need to
And if you do
You can check
if player's held item is {@dirtgen}: add location of event-block to {gens::%{_u}%::dirt::*} add 1 to {gc::%{_u}%} send "&a&lGenerator &7» &6&lDirt &6Gen &fplaced %{gc::%{_u}%}%/%{gencap::%{_u}%}%" to player doesnt work? or smth
if 1 of player's tool is {@dirtgen}
doesnt work? hmm?
but in creative it does
on place of coarse dirt or sand or gravel or clay block or stone or andesite or coal ore or coal block or copper ore or copper block or iron ore or iron block or gold ore or gold block or redstone ore or redstone block or lapis ore or lapis block or diamond ore or diamond block or emerald ore or emerald block or crying obsidian or cracked nether bricks or soul sand or bone block or magma block or gilded blackstone or cracked stone bricks or mossy stone bricks or endstone or endstone bricks or purpur block or purpur pillar or fletching table: set {_p} to player set {_u} to player's uuid if {gc::%{_u}%} >= {gencap::%{_u}%}: cancel event send "&f" to {_p} send "&a&lGenerator &7» &aYou have reached the max generator limit" to {_p} send "&f" to {_p} stop wait 2 ticks if 1 of player's held item is {@dirtgen}: add location of event-block to {gens::%{_u}%::dirt::*} add 1 to {gc::%{_u}%} send "&a&lGenerator &7» &6&lDirt &6Gen &fplaced %{gc::%{_u}%}%/%{gencap::%{_u}%}%" to player
look
and it once again only works in creative
idk
o wait
it works half
haha
if i have like 64 items
the last one i place doenst work
Oh
Well yeah
They are gonna have an empty hand
So it cant be a dirt gen
Why do you have the wait 2 tick
for the max gens
?
It can save wothout the wait
And itll worl for the last one then