Jump to content

pleas help me :)


ZeroGaming

Recommended Posts

after I restart my server or I relog my dropper stops working and it bugs me because I am still in the variable I looked at a thread from 2017 on skunity and it said to restart your server and run the /test command and i did and I was still in the variable but my dropper is still not dropping, I would like some help I have tried doing some stuff like saving the variable to another but no luck.

command /test:
trigger:
send "Debug: %{gummybeardroppersetup::*}%"

on pressure plate:
if event-block is crimson pressure plate:
cancel event
if {packingdroppersetup::*} contains player:
cancel event
if {gummybeardroppersetup::*} does not contain player:
if {gummybeardroppersetup::*} contains player:
cancel event
if player's balance is less than 100:
send "&ayou just bought the &lGummy Bear &adropper!"
add player to {gummybeardroppersetup::*}
set event-block to air
wait 1 tick
set event-block to smooth stone
set event-block to air
set {_3} to location of event-block
set {_start} to location 3 left of {_3}
set {_1} to location 1 above {_start}
set {_dropper} to location of {_start}
set {_up} to location 1 left {_dropper}
set {_temp} to location 1 right of {_start}
set {_temp} to location 1 right of {_1}
add player to {dropper2::*}
wait 1 second
set block at location of {_dropper} to top prismarine slab
wait 1 second
set block at location 1 left {_dropper} to west facing prismarine stair
wait 1 second
set block at location left {_dropper} to {_up}
set block at location 1 left {_dropper} to west facing prismarine stair
wait 1 second
set block 1 above {_up} to prismarine block
wait 1 second
set block 2 above {_up} to west facing prismarine stair
wait 1 second
set block 3 above {_dropper} to bottom prismarine slab
set block 2 above {_dropper} to top prismarine slab
wait 1 second
set block 2 above {_temp} to bottom prismarine slab
wait 1 second
set block 1 above {_temp} to end rod
set {gummybear.%player%} to location of {_temp}
wait 1 second
if {gummybeardroppersetup::*} contains player:
while {gummybeardroppersetup::*} contains player:
wait 3 seconds
drop 1 wheat seeds named "&aGummy Bears" at location of {gummybear.%player%} without velocity
wait 5 seconds
add 2.5 to player's balance

Link to comment
Share on other sites

15 hours ago, ZeroGaming said:

after I restart my server or I relog my dropper stops working and it bugs me because I am still in the variable I looked at a thread from 2017 on skunity and it said to restart your server and run the /test command and i did and I was still in the variable but my dropper is still not dropping, I would like some help I have tried doing some stuff like saving the variable to another but no luck.

command /test:
trigger:
send "Debug: %{gummybeardroppersetup::*}%"

on pressure plate:
if event-block is crimson pressure plate:
cancel event
if {packingdroppersetup::*} contains player:
cancel event
if {gummybeardroppersetup::*} does not contain player:
if {gummybeardroppersetup::*} contains player:
cancel event
if player's balance is less than 100:
send "&ayou just bought the &lGummy Bear &adropper!"
add player to {gummybeardroppersetup::*}
set event-block to air
wait 1 tick
set event-block to smooth stone
set event-block to air
set {_3} to location of event-block
set {_start} to location 3 left of {_3}
set {_1} to location 1 above {_start}
set {_dropper} to location of {_start}
set {_up} to location 1 left {_dropper}
set {_temp} to location 1 right of {_start}
set {_temp} to location 1 right of {_1}
add player to {dropper2::*}
wait 1 second
set block at location of {_dropper} to top prismarine slab
wait 1 second
set block at location 1 left {_dropper} to west facing prismarine stair
wait 1 second
set block at location left {_dropper} to {_up}
set block at location 1 left {_dropper} to west facing prismarine stair
wait 1 second
set block 1 above {_up} to prismarine block
wait 1 second
set block 2 above {_up} to west facing prismarine stair
wait 1 second
set block 3 above {_dropper} to bottom prismarine slab
set block 2 above {_dropper} to top prismarine slab
wait 1 second
set block 2 above {_temp} to bottom prismarine slab
wait 1 second
set block 1 above {_temp} to end rod
set {gummybear.%player%} to location of {_temp}
wait 1 second
if {gummybeardroppersetup::*} contains player:
while {gummybeardroppersetup::*} contains player:
wait 3 seconds
drop 1 wheat seeds named "&aGummy Bears" at location of {gummybear.%player%} without velocity
wait 5 seconds
add 2.5 to player's balance

dont make duplicate posts please.

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

The event is 'on walk on pressure plate' not 'on pressure plate'

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

its not that will lag the server because it checks when a player walks if i have it "on pressure plate" it will check when a pressure plate is stepped on not every time every single player walks, thanks for your comment but I have already had this discussion and that is not what i am asking about. @Gam3rBoi

Link to comment
Share on other sites

59 minutes ago, ZeroGaming said:

its not that will lag the server because it checks when a player walks if i have it "on pressure plate" it will check when a pressure plate is stepped on not every time every single player walks, thanks for your comment but I have already had this discussion and that is not what i am asking about. @Gam3rBoi

wha?

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

It looks like you have this:

if {gummybeardroppersetup::*} does not contain player:

    if {gummybeardroppersetup::*} contains player:

 

If it succeeds the first check, it will ALWAYS fail the second check. You do not need the second check.

Edited by Gam3rBoi

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

5 minutes ago, ZeroGaming said:

@AgentGamerPro basically the script will lag your server because its checking every time someone walks

"on step on crimson pressure plate:"

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

4 minutes ago, ZeroGaming said:

but @AgentGamerPro, how does that help with my issue if player's relog?

ur previous msg said nothing about a relog.

Store the locations of where the seeds will spawn. For a restart or relog combine the "on load" event with a "while", then go through the stored locations from before and spawn seeds.

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

set {gummybeardropper::seedLocation} to location(0, 65, 0, world("gbworld"))

then use a preiodic event to spawn the seeds at {gummybeardropper::seedLocation}

 

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...