Jump to content

tempera

Member
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

tempera's Achievements

Lurker

Lurker (1/6)

0

Reputation

  1. It still does not work. I would like for you to acctualy rewrite the code the right way so i can learn
  2. on break end portal frame: if event-player is sneaking: cancel event set {selectedPortal} to event-block send action bar "§b§lSelected portal! Do '/portal settarget' to set the portal target!" to event-player command /portal settarget: permission: portal.settarget trigger: add {Portals::%{selectedPortal}%::*} to event-player's location send action bar "§b§lPortal target set! Now just walk over it!" to event-player on walk on end portal frame: if {portals::event-block::*} is not set: send action bar "§c§lThis portal does not have a target yet!" to event-player stop trigger teleport event-player to {portals::event-block} play sound "entity.enderman.teleport" with volume 1 and pitch 1 to event-player
  3. It doesnt give any errors, it just says that there is not target
  4. I have changed it and it still doesn't work, i have modified and it still also doesn't work. add {Portals::%{selectedPortal}%::*} to event-player's location
  5. I changed to this and it still does not work: on break end portal frame: if event-player is sneaking: cancel event set {selectedPortal} to event-block send action bar "§b§lSelected portal! Do '/portal settarget' to set the portal target!" to event-player command /portal settarget: permission: portal.settarget trigger: set {portals::selectedPortal::*} to event-player's location send action bar "§b§lPortal target set! Now just walk over it!" to event-player on walk on end portal frame: if {portals::event-block::*} is not set: send action bar "§c§lThis portal does not have a target yet!" to event-player stop trigger teleport event-player to {portals::event-block} play sound "entity.enderman.teleport" with volume 1 and pitch 1 to event-player
  6. I tried it and unfortunaly it still doesnt work.
  7. First of all, I am not a native speaker, sorry for my english! Although I code java, I am very new to skript, so this will probably be a trivial thing that I am missing here. My code just will not set the variable and whenever I step on a portal it will say it does not have a target. on break end portal frame: if event-player is sneaking: cancel event set {selectedPortal} to event-block send action bar "§b§lSelected portal! Do '/portal settarget' to set the portal target!" to event-player command /portal settarget: permission: portal.settarget trigger: set {portals.selectedPortal} to event-player's location send action bar "§b§lPortal target set! Now just walk over it!" to event-player on walk on end portal frame: if {portals.event-block} is not set: send action bar "§c§lThis portal does not have a target yet!" to event-player stop trigger teleport event-player to {portals.event-block} play sound "entity.enderman.teleport" with volume 1 and pitch 1 to event-player
×
×
  • Create New...