#Heyo! I need some help changing a function for a period of time when a command is executed
1 messages · Page 1 of 1 (latest)
So it would be "drop {_int} of..."
No I mean
When you create your functio
Function*
You set some parameters after it, so it would be int: integer
Call it whatever you want
Yea so...
function gensDrops(L: location, I: itemtype):
drop {_int} of {_I} at block above {_L} without velocity
But im now having trouble setting it with a command
don't set it with a command
function gensDrops(L: location, I: itemtype, int: integer):
oh wait
gensDrops(loop-value-2, coal) if block at loop-value-2 contains coal block
i have that
make a command to set {boost} to arg-1
then you can do drop (1 * {boost}) of {_I} at block above {_L} without velocity
forget what I said before
ohh oke
do the boost thing here
in your function
ohhhh
send the command you did to make the boost
command /genboost [<text>]:
permission: gen.boost
trigger:
set {boost} to arg-1
change text to integer
Ok it works now, I cant set it back to the original droprate
then it spawns 3?
eh
when you set it to 1?
wait
I'm so dumb
you can just do "drop {boost} of ..."
@pure trench
now its dropping 6?
function gensDrops(L: location, I: itemtype):
drop {boost} of {_I} at block above {_L} without velocity
command /genboost [<integer>]:
permission: gen.boost
trigger:
set {boost} to arg-1
yea it multiplys 3 buy whatever the boost is
try to add delete {boost} before setting it
huh... still 3 per
show me where you use the function
every 2.5 seconds:
loop all players:
loop {gens::location::*}:
gensDrops10(loop-value-2, dirt) if block at loop-value-2 contains dirt
gensDrops(loop-value-2, stone) if block at loop-value-2 contains deepslate
gensDrops(loop-value-2, coal) if block at loop-value-2 contains coal block
gensDrops(loop-value-2, amethyst cluster) if block at loop-value-2 contains budding amethyst
gensDrops(loop-value-2, iron ingot) if block at loop-value-2 contains iron block
gensDrops(loop-value-2, emerald) if block at loop-value-2 contains emerald block
gensDrops(loop-value-2, diamond) if block at loop-value-2 contains diamond block
gensDrops(loop-value-2, gold ingot) if block at loop-value-2 contains gold block
gensDrops(loop-value-2, redstone dust) if block at loop-value-2 contains redstone block
gensDrops(loop-value-2, pink petals) if block at loop-value-2 contains stripped cherry wood
gensDrops(loop-value-2, lapis) if block at loop-value-2 contains lapis block
gensDrops(loop-value-2, obsidian) if block at loop-value-2 contains crying obsidian
gensDrops(loop-value-2, bone meal) if block at loop-value-2 contains bone block
gensDrops(loop-value-2, magma cream) if block at loop-value-2 contains magma block
gensDrops(loop-value-2, ice) if block at loop-value-2 contains blue ice
gensDrops(loop-value-2, wither rose) if block at loop-value-2 contains soul soil
gensDrops(loop-value-2, sculk) if block at loop-value-2 contains sculk catalyst
function gensDrops(L: location, I: itemtype):
drop {boost} of {_I} at block above {_L} without velocity
function gensDrops10(L: location, I: itemtype):
drop 10 of {_I} at block above {_L} without velocity
command /genboost [<integer>]:
permission: gen.boost
trigger:
delete {boost}
set {boost} to arg-1
weird
let me try something
try this
every 2.5 seconds:
loop all players:
loop {gens::location::*}:
gensDrops10(loop-value-2, dirt, {boost}) if block at loop-value-2 contains dirt
function gensDrops(L: location, I: itemtype, drop: int):
drop {_drop} of {_I} at block above {_L} without velocity```
still no
lol it's weird