gust_dust Posted January 29, 2021 Share Posted January 29, 2021 im trying to make it so when i do /sell and it isnt working options: cobbleprice: 2 command /sell: trigger: if player's inventory contains cobblestone: set {_ammount} to ammount of cobblestone in player's inventory set {_profit} to {@cobbleprice} * {_ammount} send "%{_profit}%" add AMOUNT to player's balance else: send "Sorry, but you don't have any cobblestone in your inventory." it says that inventory of a player is not a world set {_ammount} to ammount of cobblestone in player's inventory so i need help Link to comment Share on other sites More sharing options...
Skript Posted January 29, 2021 Share Posted January 29, 2021 (edited) You haven't spelled amount correctly. Edited January 29, 2021 by Skript Link to comment Share on other sites More sharing options...
likepizza Posted February 28, 2021 Share Posted February 28, 2021 still doesnt work Link to comment Share on other sites More sharing options...
CoolProgrammer Posted February 28, 2021 Share Posted February 28, 2021 14 minutes ago, likepizza said: still doesnt work It does Hello there! If you're reading this, hope you're having a wonderful day! Feel free to contact me via Discord (CoolProgrammer#1920) for any help. My DMs are always open for help. You can also message via. forum messages for help. Also, don't hesitate to leave a like on my post if I helped you in any way. Link to comment Share on other sites More sharing options...
likepizza Posted February 28, 2021 Share Posted February 28, 2021 (edited) it doesn't then send me the right one please i made one but this not works command /sell: trigger: set {_stone} to number of stone in Player's inventory set {_value} to 3 * {_stone} if {_stone} > 0: run "eco give %player% {_value}" else: send "You dont have any stone" Edited February 28, 2021 by likepizza Link to comment Share on other sites More sharing options...
CoolProgrammer Posted February 28, 2021 Share Posted February 28, 2021 4 minutes ago, likepizza said: it doesn't then send me the right one please i made one but this not works command /sell: trigger: set {_stone} to number of stone in Player's inventory set {_value} to 3 * {_stone} if {_stone} > 0: run "eco give %player% {_value}" else: send "You dont have any stone" Enjoy command /sell: trigger: set {_stone} to amount of stone in player's inventory if {_stone} < 1: send "You dont have any stone" stop set {_value} to 3 * {_stone} run "eco give %player% %{_value}%" Hello there! If you're reading this, hope you're having a wonderful day! Feel free to contact me via Discord (CoolProgrammer#1920) for any help. My DMs are always open for help. You can also message via. forum messages for help. Also, don't hesitate to leave a like on my post if I helped you in any way. Link to comment Share on other sites More sharing options...
likepizza Posted February 28, 2021 Share Posted February 28, 2021 (edited) btw can u fix this part. and /sell isn't working on place of hay block: set {gens::%location of event-block%} to uuid of player if {gens::%player's uuid%} < 10: add 1 to {gens::%player's uuid%} while event-block is hay block: wait 80 ticks drop 1 wheat above location of event-block else: send "" to player send "&bYou have reached your Gen Cap! &7%{gens::%player's uuid%}%&b/&710" to player send "" to player cancel event command /gencap [<player>] [<text>] [<number>]: permission: gencap.use permission message: &cNope! trigger: if arg-1 is set: if arg-2 is "reset": set {gens::%arg-1's uuid%} to 0 send "&cYou have just reset %arg-1%&c's gen cap!" to player command /gens: trigger: send "" to player send "&bYou have used %{gens::%player's uuid%}%&7/&b10 gen space!" to player send "" to player No errors bhut gen cap aint working it says gencap reached Edited February 28, 2021 by likepizza Link to comment Share on other sites More sharing options...
MinecraftMan10132 Posted March 1, 2021 Share Posted March 1, 2021 try execute console command Discord: MinecraftMan1013#7242 Link to comment Share on other sites More sharing options...
MinecraftMan10132 Posted March 1, 2021 Share Posted March 1, 2021 18 hours ago, likepizza said: btw can u fix this part. and /sell isn't working on place of hay block: set {gens::%location of event-block%} to uuid of player if {gens::%player's uuid%} < 10: add 1 to {gens::%player's uuid%} while event-block is hay block: wait 80 ticks drop 1 wheat above location of event-block else: send "" to player send "&bYou have reached your Gen Cap! &7%{gens::%player's uuid%}%&b/&710" to player send "" to player cancel event command /gencap [<player>] [<text>] [<number>]: permission: gencap.use permission message: &cNope! trigger: if arg-1 is set: if arg-2 is "reset": set {gens::%arg-1's uuid%} to 0 send "&cYou have just reset %arg-1%&c's gen cap!" to player command /gens: trigger: send "" to player send "&bYou have used %{gens::%player's uuid%}%&7/&b10 gen space!" to player send "" to player No errors bhut gen cap aint working it says gencap reached what about this isnt working? Discord: MinecraftMan1013#7242 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now