AIGLE25 Posted October 24, 2023 Share Posted October 24, 2023 Hello , i am trying to do a script that give a bucket when a player place water , but my script doesn't giving it in the current selected slot of the player there is my current script: on place water: execute console command "/give %player% minecraft:bucket" Link to comment Share on other sites More sharing options...
DanRub Posted October 25, 2023 Share Posted October 25, 2023 Hey, try this: on block place: if event-block is water: set {_tool} to player's tool set player's tool to {_tool} Link to comment Share on other sites More sharing options...
AIGLE25 Posted October 26, 2023 Author Share Posted October 26, 2023 (edited) 13 hours ago, DanRub said: Hey, try this: on block place: if event-block is water: set {_tool} to player's tool set player's tool to {_tool} what shout i write on {_tool} ? because i am running a mini game server and when i place a water bucket ,it disapear 2023-10-26 13-22-36.mp4 Edited October 26, 2023 by AIGLE25 Link to comment Share on other sites More sharing options...
DanRub Posted October 30, 2023 Share Posted October 30, 2023 Your Minigame probably override the skript, so the skript "isnt" applying while the game is started.. Link to comment Share on other sites More sharing options...
AIGLE25 Posted November 3, 2023 Author Share Posted November 3, 2023 (edited) On 10/30/2023 at 8:44 PM, DanRub said: Your Minigame probably override the skript, so the skript "isnt" applying while the game is started.. my script is working , but it just need to give the bucket on the current slot , this video is to show why i want this script (the script was not activated on this video) Edited November 3, 2023 by AIGLE25 Link to comment Share on other sites More sharing options...
DanRub Posted November 3, 2023 Share Posted November 3, 2023 And did you try that skript? Link to comment Share on other sites More sharing options...
AIGLE25 Posted November 4, 2023 Author Share Posted November 4, 2023 20 hours ago, DanRub said: And did you try that skript? i failed to use it , i don't understand how this script work Link to comment Share on other sites More sharing options...
DanRub Posted November 4, 2023 Share Posted November 4, 2023 Wdym, just put this: on block place: if event-block is water: set {_tool} to player's tool set player's tool to {_tool} instead of your: on place water: execute console command "/give %player% minecraft:bucket" Link to comment Share on other sites More sharing options...
AIGLE25 Posted November 6, 2023 Author Share Posted November 6, 2023 (edited) On 11/4/2023 at 7:11 PM, DanRub said: Wdym, just put this: on block place: if event-block is water: set {_tool} to player's tool set player's tool to {_tool} on place water: execute console command "/give %player% minecraft:bucket" i exactly put : on block place: if event-block is water: set {_tool} to player's tool set player's tool to {_tool} but it's not working , should i put something on {_tool } ? Edited November 6, 2023 by AIGLE25 Link to comment Share on other sites More sharing options...
AIGLE25 Posted November 6, 2023 Author Share Posted November 6, 2023 nvm , i found a solution. it wasn't giving the bucket on my slot because the bucket was still in my hand during a moment before it disapear so it will give my bucket on a other slot but with this : on place water: wait 5 ticks execute console command "/give %player% minecraft:bucket" it's fixed Link to comment Share on other sites More sharing options...
DanRub Posted November 7, 2023 Share Posted November 7, 2023 That's terribly inefficient, but okay. Link to comment Share on other sites More sharing options...
AIGLE25 Posted November 8, 2023 Author Share Posted November 8, 2023 (edited) 20 hours ago, DanRub said: That's terribly inefficient, but okay. yeah i know thats why i want to test your script and i found why it was not working , it's because i was using a old version of skript but after installing your script , it was still not working so i needed to modify it to add a delayer but if i right click with a block, it will give me a bucket , like the if water check doesn't work. Edited November 8, 2023 by AIGLE25 Link to comment Share on other sites More sharing options...
AIGLE25 Posted November 8, 2023 Author Share Posted November 8, 2023 (edited) i tried with : on bucket empty: wait 5 ticks set {_tool} to player's tool set player's tool to bucket but it delete a bucket if someone have another buckt on his inventory 2023-11-08 13-24-13.mp4 Edited November 8, 2023 by AIGLE25 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