#trouble with MolangVariableMap

1 messages · Page 1 of 1 (latest)

west wind
#
world.afterEvents.itemUse.subscribe(data => {
    const item = data.itemStack
    const player = data.source
    const view = player.getViewDirection()
    const mvm = new MolangVariableMap()
        .setSpeedAndDirection('variable.dir', 1, player.location);

    const loc = { x: player.location.x + view.x * 4, y: player.location.y + view.y + 1.5, z: player.location.z + view.z * 4 }

    if (item?.typeId === 'minecraft:breeze_rod') {
        player.spawnParticle('vcsteel:test', loc, mvm)
    }
})
#

first time doing this, what am I doing wrong

rain tree
#

Use setvector3 instead

west wind
rain tree
#

In MolangVariableMap yes

west wind
#

im in 1.12.0-beta

#

would it still work?

#

or is this only for previews

west wind
#

it works

#

I see it

#

mb

#

why is the particle not going towards the player though

#

why is all the way up there in the sky lol

#

I changed the offset to see exactly where the particle is going towards and it's up there

#

why isnt it going towards my player im confused as hell

west wind
#

still wondering whats going on with this

west wind