#(MrCrash) What's wrong with my schematic cuboid flag ?

42 messages · Page 1 of 1 (latest)

cedar juniper
#
      - schematic paste name:portal_inge <context.location>
      - modifyblock <context.location.above[2]> air
      - flag server portal_inge_cubo:<-:<cuboid[<schematic[portal_inge].cuboid[<context.location>]>]>

      on player right clicks block in:portal_inge_cubo:
      - if <player.is_sneaking>:
          - flag server portal_inge_cubo:->:<server.flag[portal_inge_cubo]>
          - drop plasma_portal <context.location>
          - modifyblock <server.flag[portal_inge_cubo].block> air

      on delta time secondly:
      - foreach <server.flag[portal_inge_cubo]> as:ingep_effect:
        - playeffect effect:electric_spark at:<[ingep_effect].block> quantity:2 offset:1```


I paste the schem, flag this cuboid and try to use it in ``player right clicks`` and ``foreach`` but seem to not working :/
proper auroraBOT
#

(MrCrash) What's wrong with my schematic cuboid flag ?

#

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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

ebon fog
#
  1. you should know by now via the many posts you made just saying "its not working" isnt helpful and you should paste a debug log with it
  2. you should also know that you should be paying attention to said debug log for any sign of errors~~, for cuboid.cuboid is invalid and your logs will very clearly be showing this (or at the very least your for loop will be spitting out all sorts of garbage about trying to do things with invalid values)~~
#

sorry, misread the tag there, its not invalid, just you have unneeded parts to it. the flag command itself is malformed

#

(you removed an item instead of putting one in, the data action to put things in is ->)

cedar juniper
#

oh

#

mybad :/

#

obviously now the debug send more informations x)

ebon fog
#

oh.. also - flag server portal_inge_cubo:->:<server.flag[portal_inge_cubo]> i have no idea what that was trying to accomplish, but it is most certainly not doing what you were trying
and is this area even defined anywherein:portal_inge_cubo to make the event happen?

cedar juniper
#

I want to flag this cuboid for use it to detect item drop inside

I want to make a portal , when a certain item is dropped in , he drop another item

like ... a crafty portal?

#

So for the moment this cuboid is only used to display particles

#

maybe more correct for my usage to just flag the centre and all 1 block in radius arround him

like the ochre_froglight is my center and i need to flag all red/white wool with it

#

like <context.location.add[-1,0,-1].to_cuboid[<context.location.add[1,0,1]>]>

ebon fog
#

that doesnt.. explain specifically that weird flag line that i highlighted nor answer the question of if the event even fires....

cedar juniper
#

- flag server portal_inge_cubo:->:<server.flag[portal_inge_cubo]> is for save the cuboid in a list , for use it in foreach and other things

and

in:portal_inge_cubo here i try to use my flagged cuboid

ebon fog
#

you are just putting the flag back into itself

#

its already a list of cuboids, at best it just adds those same cuboids again to the list

cedar juniper
#

so just - flag server portal_inge_cubo already save my cuboid in a server flag?

ebon fog
#

i am entirely unsure where or how you are being confused by this tbh...

cedar juniper
#

yeah , but if i can have multiples portal, just flag it don't override each location ?

#

that why i use <-/->

ebon fog
#

yes

#

i am just confused at why you dont seem to get why - flag server portal_inge_cubo:->:<server.flag[portal_inge_cubo]> is not useful in any way

ebon fog
cedar juniper
#

oh

#

yeah

#

i add the flag to the flag

#

like the same

#

mb

#

ok so i modify a little my script to this:

      - schematic paste name:portalingé <context.location>
      - modifyblock <context.location.above[2]> air
      - flag server portal_cubo:->:<context.location.add[-1,0,-1].to_cuboid[<context.location.add[1,0,1]>]>
      - flag server del_portal_cubo:->:<cuboid[<schematic[portal_inge].cuboid[<context.location>]>]>

      on player right clicks lodestone in:portal_cubo:
      - narrate "<&4><&l>Compression du portail"
      - wait 30t
      - flag server portal_cubo:<-:<context.location.add[-1,0,-1].to_cuboid[<context.location.add[1,0,1]>]>
      - drop plasma_portal <context.location>
      - flag server del_portal_cubo:<-:<cuboid[<schematic[portal_inge].cuboid[<context.location>]>]>
      - foreach <server.flag[del_portal_cubo].blocks> as:delportal:
        - modifyblock <[delportal]> air1 ```

But the ``on player right clicks lodestone in:portal_cubo:`` don't work :/

debug send:

```18:46:59  ERROR!
        Error Message: Invalid event 'in:<area>' switch [PlayerClicksBlock] ('in:???') (did you make a typo, or forget to 'note' an object with that name?): 'player right clicks lodestone in:portal_cubo' for PORTAL_EVENT 
18:47:00  ERROR!
        Error Message: Invalid event 'in:<area>' switch [PlayerClicksBlock] ('in:???') (did you make a typo, or forget to 'note' an object with that name?): 'player right clicks lodestone in:portal_cubo' for PORTAL_EVENT 
18:47:00  ERROR!
        Error Message: Invalid event 'in:<area>' switch [PlayerClicksBlock] ('in:???') (did you make a typo, or forget to 'note' an object with that name?): 'player right clicks lodestone in:portal_cubo' for PORTAL_EVENT 
18:47:00  ERROR!
        Error Message: Invalid event 'in:<area>' switch [PlayerClicksBlock] ('in:???') (did you make a typo, or forget to 'note' an object with that name?): 'player right clicks lodestone in:portal_cubo' for PORTAL_EVENT ```
#

the context lodestone:

#

on player right clicks lodestone in: need a noted cuboid? don't work with flagged cuboid?

#

oh don't need the : ok

low viperBOT
#
Resolved

Thread closed as resolved.