TKChino Posted July 25, 2021 Share Posted July 25, 2021 New to skripting, really new. Read through guides and things to help me understand it a little better, but need major help lol. Been playing around with skript a little which you will see in both the codes i put in. I can turn cobblestone to bedrock and back again. Not a problem. on break: if player's world is "ul_RPGWorld": if event-block is cobblestone: chance of 5%: give 2 cobblestone to player if event-block is cobblestone: clear drops give 1 xp to player give 1 of event-block to player set event-block to bedrock wait 10 seconds set event-block to cobblestone I can make stone turn to cobble then to bedrock and back to stone. Not a problem, but i dont think it works like i think it does. on break: if event-block is stone: set event-block to cobblestone wait 60 ticks set event-block to stone on break: if event-block is cobblestone: set event-block to bedrock wait 60 ticks set event-block to stone The problem is the block i mined first doesnt go back to what it was to begin with, so if it was cobble to begin with once i mine it it turns to stone instead of cobblestone again. Now when i do the same thing with coal ore, it sets back to either stone or cobblestone never back to coal ore. What am i doing wrong on it if you can help me out? Link to comment Share on other sites More sharing options...
boxboxbox Posted July 25, 2021 Share Posted July 25, 2021 Moved this to Skript Discussion for you! Link to comment Share on other sites More sharing options...
TKChino Posted July 26, 2021 Author Share Posted July 26, 2021 Thanks, i was sure i was in skript discussions to begin with when making it, as i was looking for help before posting incase someone had already said something like this. Link to comment Share on other sites More sharing options...
FlapKakker Posted July 26, 2021 Share Posted July 26, 2021 You might just want to change stone to cobblestone in the last line of code? Link to comment Share on other sites More sharing options...
TKChino Posted July 29, 2021 Author Share Posted July 29, 2021 On 7/26/2021 at 3:58 PM, FlapKakker said: You might just want to change stone to cobblestone in the last line of code? On that one i want it to start as stone, change to cobble, then to bedrock, then back to its starting block (again dont think it works poperly because the placed cobble changes to stone in the end too lol) Same when i do coal, it always ends back as stone no matter what, unless i do what you said, stone - bedrock back to stone again, or coal bedrock back to coal again. Link to comment Share on other sites More sharing options...
Rodney_RWR Posted August 2, 2021 Share Posted August 2, 2021 (edited) on break: if player's world is "ul_RPGWorld": if event-block is stone: give player event-block set event-block to cobblestone wait 60 ticks set event-block to stone on break: if player's world is "ul_RPGWorld": if event-block is cobblestone: give player event-block set event-block to bedrock wait 60 ticks set event-block to stone this should work not tested Edited August 3, 2021 by ___Rodney_RWR___ uwu ------------------------------------------------------------------- NO RANK ALL THE WAY --------------------------------------------------------------------- play.koolkidzmc.com (Velocity + Pufferfish FTW) discord.koolkidzmc.com Spoiler /_(•v•)_7 Link to comment Share on other sites More sharing options...
Punish Posted August 3, 2021 Share Posted August 3, 2021 now i dont even understand what i should write in this topic 2 Every time you tell a lie, You'll have to tell a 100 more. 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