#(j3t59) C4 Listing locations and Foreach Location - Explode
1 messages · Page 1 of 1 (latest)
(j3t59) J3T59
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
Content of Denizen Script Paste #126676: Edit of paste 126675: Cfour... pasted 2024/09/21 10:55:42 UTC-07:00, Paste length: 573 characters across 20 lines, Content: CFour: type: item
current iteration /\
im not certain that im supposed to use tablist but i cant really find in the MetaDocs what i should be using to create a list
i made a mistake when naming the ticket, sorry 🥺
(j3t59) C4 Listing locations and Foreach Location - Explode
!g flags
View the guide page 'Long Term Memory: Flags' at: https://guide.denizenscript.com/guides/basics/flags.html
Content of Denizen Script Paste #126687: Edit of paste 126685: Edit of paste 126679: Edit of paste 126676: Edit of paste 126675: Cfour... pasted 2024/09/21 14:15:33 UTC-07:00, Paste length: 584 characters across 21 lines, Content: CFour:
i am still having problems with non-existent definitions
Do you have a user called Bombloc? lol
The tag does not make sense at all it returns if even, a single location
You want to return the players flag
not the player called 'Bombloc's location
yay
+> YAY!!!
no detonation
!debug
If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!
Content of Server Log Paste #126689: Denizen Debug Logs From A Minecraft Server... pasted 2024/09/21 14:22:27 UTC-07:00, Paste length: 3821 characters across 39 lines, Content: Java Version: 22.0.2Up-time: 1m 33s
View the guide page 'Short Term Memory: Definitions' at: https://guide.denizenscript.com/guides/basics/definitions.html
check the data action section ^
will do
what is the syntax for using Def lists in a foreach loop? i am staring at the meta and still confused
can be any tag that returns a list
if you save a list in the flag, you can just leave it as is
currently you saving a single value and replacing it each time you save a new one
by using the data action :->: you add a value to it
and turn the value of the flag into a list
so i do - flag <player> Bombloc:->:<player.cursor_on>
ye
okay
testing
https://paste.denizenscript.com/View/126690 Still no detonation
Content of Server Log Paste #126690: Denizen Debug Logs From A Minecraft Server... pasted 2024/09/21 14:35:54 UTC-07:00, Paste length: 3842 characters across 39 lines, Content: Java Version: 22.0.2Up-time: 36s
Well
You only showing saving values
You need to right click a block with Detonator item
to trigger the event
agh
nice
do you need more help?
or are you going to C4 the hell out of your server
its just launching me in the air at player location
the flag is attatched to the player isnt it
Content of Denizen Script Paste #126694: Edit of paste 126687: Edit of paste 126685: Edit of paste 126679: Edit of paste 126676: Edit of paste 126675: Cfour... pasted 2024/09/21 14:41:33 UTC-07:00, Paste length: 586 characters across 20 lines, Content: CFour: type: item
new paste
queue
foreach [stop/next/<object>|...] (as:<name>) (key:<name>) [<commands>]
Loops through a ListTag, running a set of commands for each item.
Loops through a ListTag of any type. For each item in the ListTag, the specified commands will be ran for that list entry.
Alternately, specify a map tag to loop over the set of key/value pairs in the map, where the key will be <[key]> and the value will be <[value]>.
Specify "key:<name>" to set the key definition name (if unset, will be "key").
Specify "as:<name>" to set the value definition name (if unset, will be "value").
Use "as:__player" to change the queue's player link, or "as:__npc" t...
To get the 'value' of the list, you need either the default definition of foreach or set your own one
and then use that instead of player.flag[bombloc]
im lost at Default Definition
so i need to make a Maptag? my brain is hurting a little reading over the same thing 8 times
no uh
either use as:definition_name
or <[value]>
If you check the examples it should be pretty straight forward
okay, yea, ive got that, ill update the paste
I will go to sleep now
okay, ill keep at this as much as i can
Content of Denizen Script Paste #126696: Edit of paste 126694: Edit of paste 126687: Edit of paste 126685: Edit of paste 126679: Edit of paste 126676: Edit of paste 126675: Cfour... pasted 2024/09/21 15:47:38 UTC-07:00, Paste length: 642 characters across 22 lines, Content: CFour: type: item
Made a workaround in a way i can understand
Content of Denizen Script Paste #126699: Edit of paste 126698: CFour... pasted 2024/09/21 16:19:15 UTC-07:00, Paste length: 790 characters across 24 lines, Content: CFour: type: item
it works
found bug but fixed it
Im trying to flag an item being placed into a <context.entity.inventory> and i am stareing at the Inventory Meta
is it - inventory set/flag? and the flag name is the name of the item?
or a second separate line with - inventory flag origin:Primed_Cfour
@fossil yoke do you still need help with that
if so provide your current script and debug, otherwise
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@fossil yoke
I could still use help, I have some errands to run, I'll supply a debug sometime today
Content of Server Log Paste #127022: Denizen Debug Logs From A Minecraft Server... pasted 2024/10/03 11:45:46 UTC-07:00, Paste length: 9833 characters across 83 lines, Content: Java Version: 22.0.2Up-time: 5d 2h
Content of Denizen Script Paste #127023: CFour... pasted 2024/10/03 12:06:23 UTC-07:00, Paste length: 1858 characters across 46 lines, Content: Primed_Cfour: type: item
made a new paste, going to run a new test
howd it go?
Sorry, should have closed this thread, I recently moved my OS to Arch and lost all of my old code, on top of that I can't use VS Code anymore or implement the Denizen extensions for it
I'm trying to set up NeoVim but it's still going to be some time for me to figure out my OS
ah okay no worries, if you still need this you can leave it open until you get everything back?
or open a new one