#Active block with facing thing?

22 messages · Page 1 of 1 (latest)

nova moat
#

the code i tried:

{
  "variants": {
    "active=false,facing=down": {
      "model": "gtceu:block/metaphysical_grasper",
      "x": 180
    },
    "active=false,facing=up": {
      "model": "gtceu:block/metaphysical_grasper"
    },
    "active=false,facing=north": {
      "model": "gtceu:block/metaphysical_grasper",
      "x": 90
    },
    "active=false,facing=south": {
      "model": "gtceu:block/metaphysical_grasper",
      "x": 90,
      "y": 180
    },
    "active=false,facing=west": {
      "model": "gtceu:block/metaphysical_grasper",
      "x": 90,
      "y": 90
    },
    "active=false,facing=east": {
      "model": "gtceu:block/metaphysical_grasper",
      "x": 90,
      "y": 270
    },
    "active=true,facing=down": {
      "model": "gtceu:block/metaphysical_grasper_active",
      "x": 180
    },
    "active=true,facing=up": {
      "model": "gtceu:block/metaphysical_grasper_active"
    },
    "active=true,facing=north": {
      "model": "gtceu:block/metaphysical_grasper_active",
      "x": 90
    },
    "active=true,facing=south": {
      "model": "gtceu:block/metaphysical_grasper_active",
      "x": 90,
      "y": 180
    },
    "active=true,facing=west": {
      "model": "gtceu:block/metaphysical_grasper_active",
      "x": 90,
      "y": 90
    },
    "active=true,facing=east": {
      "model": "gtceu:block/metaphysical_grasper_active",
      "x": 90,
      "y": 270
    }
  }
}```
#

the models are there and they show when i hold em

#

just not when i place em

#

registration code:

event
    .create('gtceu:metaphysical_grasper', 'gtceu:active')
    .displayName('§5Metaphysical Transcendence Grasp')
    .soundType('metal')
    .fullBlock(false)
    .hardness(400)
    .resistance(15000)
    .requiresTool(true)
    .tagBlock('minecraft:mineable/pickaxe')
    .tagBlock('forge:needs_duranium_tool')
    .defaultCutout()
    .property(BlockProperties.FACING)
    .placementState(state => {state.setValue(BlockProperties.FACING, state.clickedFace)})
nova moat
#

if you got a answer that can help, ping me. i'll be there some day

nova moat
#

bump perhaps?

dawn blaze
#

So when you look at your block with f3 open what properties does it have

nova moat
#

Ain't at PC rn. Give me a while

nova moat
#

alright. booting back

nova moat
#

cuz i don't see it anywhere

dawn blaze
#

"Targeted Block", after the block's ID

nova moat
#

ah

dawn blaze
#

right at the top of your screenshot, actually

nova moat
#

there is no property of facing or anything

dawn blaze
#

you seem to not have a facing property yea

nova moat
#

i do have this there

.property(BlockProperties.FACING)
    .placementState(state => {state.setValue(BlockProperties.FACING, state.clickedFace)})
dawn blaze
#

uh, yeah, uh- oh I know.

#

you can't do that

#

active blocks don't support adding additional properties, actually

#

forgor

nova moat
#

:(