#Gen skript help

1 messages · Page 1 of 1 (latest)

novel crow
#

You want it to only work in creative mode?

full shard
#

no

#

it only works in creative mode

#

but i want to work in survival

novel crow
#

Uh

#

I dont see why it wouldn't work in survival

full shard
#

i dont know to

#

but it doesnt

novel crow
#

Debug ig

#

See where it stops working

#

Add broadcasts

#

Oh

#

Nvm

#

I seew

full shard
#

oh?

novel crow
#

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

full shard
#

hm

#

yes but how will it work when oyou have like 34 in your hand

novel crow
#

You only do 1?

full shard
#

no like when you have more then 1 inyour hand

novel crow
#

You place one

#

And one gen is made

#

And you have 1 less gen in your inv

full shard
#

yes i know but how do i fix it when you have more then 1 in your inventory or smth it doesnt work

novel crow
#

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

full shard
#

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

novel crow
#

if 1 of player's tool is {@dirtgen}

full shard
#

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

novel crow
#

Oh god

#

So many blocks

#

Wdym it half works

full shard
full shard
#

the last one i place doenst work

novel crow
#

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

full shard
#

for the max gens

novel crow
#

?

full shard
#

and it can save

#

whut

novel crow
#

It can save wothout the wait

full shard
#

oh

#

im sorry didnt knew that

novel crow
#

And itll worl for the last one then

full shard
#

it works now

#

😮

#

you're the best

#

@novel crow (sorry for ping) thank you so much for your time and willing to help me ❤️ you owe me