#rng position not working

1 messages · Page 1 of 1 (latest)

ashen spruceBOT
#

could somebody help me figure out what is wrong here?

scoreboard players remove rng.x biomancer_vars 5
scoreboard players remove rng.z biomancer_vars 5
scoreboard players operation rng.x biomancer_vars /= 10 biomancer_vars
scoreboard players operation rng.z biomancer_vars /= 10 biomancer_vars

execute store result storage biomancer:particles "particle.pos.rng.x" float 2 run scoreboard players get rng.x biomancer_vars
execute store result storage biomancer:particles "particle.pos.rng.z" float 2 run scoreboard players get rng.y biomancer_vars

execute as @e[tag=meat_mode] at @s run function biomancer:powers/meat_mode/summon_meat_particle with storage biomancer:particles "particle.pos.rng"
gusty hemlockBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

ashen spruceBOT
#

forgot the first part of the code

execute store result score rng.x biomancer_vars run loot spawn ~ ~ ~ loot biomancer:rng
execute store result score rng.z biomancer_vars run loot spawn ~ ~ ~ loot biomancer:rng
rustic hearth
#

i am in 1.20.1

rapid narwhal
#

you can't know what went wrong if you don't know what went wrong

#

in rules they literally say show what you tryna do, tell what you wanna do, and tell what happens instead

#

like how am I supposed to know what is currently happening and what should be happening

ashen spruceBOT
#

so this was supposed to run this function wich spawns a block display that dissapears after some ticks, and i wanted to randomize the position it was summoned, when i made without the rng position thing it was working in the sense that the block displays were showing up and disapearing but now they don't appear anywhere

here's the function that summons then

#summon_meat_particle function
$summon minecraft:block_display ~$(x) ~ ~$(z) {block_state:{Name:"minecraft:nether_wart_block",Properties:{}},transformation:[0.6875f,0.0000f,0.0000f,-0.3125f,0.0000f,0.6875f,0.0000f,0.0000f,0.0000f,0.0000f,0.6875f,-0.3125f,0.0000f,0.0000f,0.0000f,1.0000f], Tags:["meat_particle","jc"]}

execute as @e[tag=jc] run scoreboard players set @s meat_particles 100
rapid narwhal
rustic hearth
#

actually now that i think of it

gusty hemlockBOT
#
Question Closed

Your question, #1212947578224902184 (rng position not working), was resolved!

Original Message

#1212947578224902184 message

Duration open

34m

rapid narwhal
gusty hemlockBOT
rustic hearth