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)
}
})
#trouble with MolangVariableMap
1 messages · Page 1 of 1 (latest)
Use setvector3 instead
is that a method?
says 1.14.0 beta
im in 1.12.0-beta
would it still work?
or is this only for previews
Documentation for @minecraft/server
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
still wondering whats going on with this
Set the y value to -1 then?
not going to fix it.
idk why its acting like the player is all the way up there