Solved end portal frame is confusing haaaaaaaaaaaaaaaa

  • 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 comminuty!

    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.

MrMagmaPT

Member
Apr 20, 2022
2
0
1
Hi im working a litle skript for my server and i want to know if it is possible to check if an end portal has an eye in it or not

#Chek End Portal
on rightclick:
if target block is end portal frame:
if player's tool = ender eye:
if target block is = end portal frame eye=true:
send formatted "&4&lThat Fram has alredy been filled" to player
if target block is = end portal frame eye=false:
send formatted "&5You placed One &kf&r&5 Eye &kf&r" to player
else:
send formatted "&4&lYou dont have an Eye to put on the frame!!!!!" to player



Like im kinda lost out here i tried so many diferent places ;-; but nothing
 
Code:
on right click:
    if event-block is end portal frame[eye=true]:
        broadcast "This portal contains an eye of ender"
    else if event-block is end portal frame[eye=false]:
        broadcast "This portal doesn't contain an eye of ender"
 
Thanks it works like a charm :3
"#Chek End Portal
on right click:
if player's tool = ender eye:
if event-block is end portal frame[eye=true]:
send formatted "&4&lThat Fram has alredy been filled" to player
if event-block is end portal frame[eye=false]:
send formatted "&5You placed One &kf&r&5 Eye &kf&r" to player"[/CODE]
 
Status
Not open for further replies.