#It's not getting the safezones properly. I just need syntax correction.
1 messages · Page 1 of 1 (latest)
what syntax? What like is your error? have you looked at the docs?
[18:34:15 INFO]: [Skript] Line 14: (safezones.sk) [18:34:15 INFO]: undefined option {@safezones::*} [18:34:15 INFO]: Line: loop {@safezones::*}: [18:34:15 INFO]: [18:34:15 INFO]: [Skript] Line 22: (safezones.sk) [18:34:15 INFO]: undefined option {@safezones::*} [18:34:15 INFO]: Line: loop {@safezones::*}: [18:34:15 INFO]: [18:34:15 INFO]: [Skript] Line 32: (safezones.sk) [18:34:15 INFO]: undefined option {@safezones::*} [18:34:15 INFO]: Line: loop {@safezones::*}: [18:34:15 INFO]: [18:34:15 INFO]: [Skript] Line 42: (safezones.sk) [18:34:15 INFO]: undefined option {@safezones::*} [18:34:15 INFO]: Line: loop {@safezones::*}: [18:34:15 INFO]: [18:34:15 INFO]: [Skript] Line 50: (safezones.sk) [18:34:15 INFO]: undefined option {@safezones::*} [18:34:15 INFO]: Line: loop {@safezones::*}: [18:34:15 INFO]: [18:34:15 INFO]: [Skript] Line 61: (safezones.sk) [18:34:15 INFO]: undefined option {@safezones::*} [18:34:15 INFO]: Line: loop {@safezones::*}:
well yeah thats made up syntax
also i would not use an option for that
just add elemets to the list on load
How do I add custom nbt data to items?
set {_compass} to compass with custom nbt of "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}"
have you looked at the skbee wiki?
I have looked into the skript docs for it, and tried many kind of combinations of syntaxes for setting custom nbt data to items, but all have been coming out as "Can't understand this structure"
well its not a structure... you need to put in inside an event or something
permission: police.use
trigger:
set {_x} to arg-1
set {_z} to arg-2
set {_y} to 100
set {_world} to world of player
set {_loc2} to location at {_x}, {_y}, {_z} in {_world}
set {_compassFound} to false
loop all items in player's inventory:
if loop-value is a compass named "&cCrime Tracker":
set {_compass} to loop-value
set {_compassFound} to true
set string tag "minecraft:lodestone_tracker.target.pos" of custom nbt of {_compass} to "[I; %{_x}%, %{_y}%, %{_z}%]"
exit loop
if {_compassFound} is false:
set {_compass} to compass named "&cCrime Tracker"
give {_compass} to player
set string tag "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}" of custom nbt to {_compass}```
[19:37:15 INFO]: Can't understand this condition/effect: set string tag "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}" of custom nbt to {_compass}
[19:37:15 INFO]: Line: set string tag "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}" of custom nbt to {_compass}
Okay.
It says "Can't understand this condition/effect".
@north vectoralive
alr sorry
I cannot. Do you know how?
there's an expression is there not
I've actually came across that, but I'd like to actually just know how to put nbt data like "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}" inside of an item like a compass.
ikr
Im telling you it should.
Yeah, it should
you should look there before you ask here
So, should I write it like this?
set string tag of custom nbt of {_compass} with nbt from "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}"
well, you could https://tryitands.ee
but im 99% sure that will error anyways
well thanks for the meme anyway
[22:16:57 INFO]: [Skript] Line 131: (law_build.sk)
[22:16:57 INFO]: '{_compass} with nbt from "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}"' can't be added to a player because the former is neither an item type, an inventory nor an experience point
[22:16:57 INFO]: Line: give player {_compass} with nbt from "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}"
but SkBee did not include that I need to add an item type or so
Why dont you broadcast the nbt of a normal one and compare
broadcast??
wdym?
normal one? what's that?
if {_compassFound} is false:
set {_n} to nbt from "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}"
set {_compass} to compass named "&cCrime Tracker" with nbt {_n}
give player {_compass}
[22:30:25 INFO]: Can't understand this expression: 'nbt from "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}"'
[22:30:25 INFO]: Line: set {_n} to nbt from "components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}"
"Can't understand this expression"
- Give yourself a compass and put it in your main hand
- run
!broadcast pretty nbt nbt compound of player's toolin chat (or put it in a command without the exclamation mark)
Alternatively, look at the Minecraft Wiki or use mcstacker.net
And while you're at it, actually look at the SkBee docs: https://www.github.com/ShaneBeee/SkBee/wiki
you're forgetting the first and last curly bracket
I didn't forget. I just didn't know there was supposed to be brackets.
looking at the examples showed it
but even still, components have their own methods (again, the SkBee wiki covers them)
[22:37:46 INFO]: Can't understand this expression: 'nbt from "{components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}}"'
[22:37:46 INFO]: Line: set {_n} to nbt from "{components:{minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}}"
I tried this:
set {_n} to nbt from "{components:{"minecraft:lodestone_tracker":{target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}}"
I tried this:
set {_n} to nbt from "{"minecraft:lodestone_tracker":{target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}"
I tried this:
set {n} to nbt from "{"minecraft:lodestone_tracker":{target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}"
I tried this:
set {_n} to compass with nbt from "{components:{"minecraft:lodestone_tracker":{target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}}"
nothing I found from SkBee is working.
what is broadcast?
I cannot
So I don't know what's the correct syntax for doing this.
if {_compassFound} is false:
set {_n} to nbt compound from "{components:{"minecraft:lodestone_tracker":{target:{dimension:"minecraft:overworld",pos:[I;%{_x}%,%{_y}%,%{_z}%]},tracked:false}}}"
set {_compass} to compass named "&cCrime Tracker" with nbt {_n}
give player {_compass}
All errors say "Can't understand this expression"
command /inspecttool:
trigger:
broadcast pretty nbt nbt compound of player's tool
does not work