How to change block with right click?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

jovanmunja

Member
Jul 27, 2017
22
1
0
What I want to do it select the item like obsidian, I right click and it turns to wood but I can rename wood to like mood or somethin. How can I do it? :emoji_grinning:
 
I dont't understand what you mean by renaming the wood fully, but setting the clicked obsidian block to wood would go something like this:
code_language.skript:
on right click:
    event-block is obsidian
    set event-block to oak log
 
I dont't understand what you mean by renaming the wood fully, but setting the clicked obsidian block to wood would go something like this:
code_language.skript:
on right click:
    event-block is obsidian
    set event-block to oak log
Doesnt work :emoji_frowning:
The block is Slimeball (341) named: &eStacker &f- &cDisabled
With right click, I wanna make him magma cream (378) with the name: &eStacker &f- &aEnabled
 
Doesnt work :emoji_frowning:
The block is Slimeball (341) named: &eStacker &f- &cDisabled
With right click, I wanna make him magma cream (378) with the name: &eStacker &f- &aEnabled
Are you talking about items in a GUI?
[doublepost=1501187785,1501187749][/doublepost]
Are you talking about items in a GUI?
Or you held item perhaps?
 
Okay so hold a slime and toggle its name with a click? Here try this
code_language.skript:
on right click with slime:
    if the name of the player's held item is "&eStacker &f- &cDisabled":
        set the name of the player's held item to "&eStacker &f- &cEnabled"
    if the name of the player's held item is "&eStacker &f- &cEnabled":
        set the name of the player's held item to "&eStacker &f- &cDisabled"
 
Okay so hold a slime and toggle its name with a click? Here try this
code_language.skript:
on right click with slime:
    if the name of the player's held item is "&eStacker &f- &cDisabled":
        set the name of the player's held item to "&eStacker &f- &cEnabled"
    if the name of the player's held item is "&eStacker &f- &cEnabled":
        set the name of the player's held item to "&eStacker &f- &cDisabled"
You havent read my whole message :emoji_stuck_out_tongue:
"With right click, I wanna make him magma cream (378) with the name: &eStacker &f- &aEnabled"
 
You havent read my whole message :emoji_stuck_out_tongue:
"With right click, I wanna make him magma cream (378) with the name: &eStacker &f- &aEnabled"
ah, just add one extra line in then before you name the tool
set player's held item to magma cream
 
ah, just add one extra line in then before you name the tool
set player's held item to magma cream
Almost done!
It gets changed with right click (great), but its called "Magma cream" not "&eStacker &f- &aEnabled"

on right click with slime:
set player's held item to magma cream
if the name of the player's held item is "&eStacker &f- &cDisabled":
set the name of the player's held item to "&eStacker &f- &aEnabled"
 
Status
Not open for further replies.