#Help for fletcher nerf

1 messages · Page 1 of 1 (latest)

soft sinew
#

I want to make that he fletcher villager trades 12 sticks instead of 16. I want that the other trades still the same.

Tick:

execute as @e[type=villager,nbt={Offers:{Recipes:[{buy:{id:"minecraft:stick"}}]}},tag=!NerfedFletcher] run function bev:nerf_fletcher

Function Nerf_fletcher:

data modify entity @s Offers.Recipes[{buy:{id:"minecraft:stick",Count:32b},maxUses:16}].maxUses set value 12
tag @s add NerfedFletcher

#

<@&935561184806060073>

scarlet egret
#

do the commands give off any errors when being run?

soft sinew
#

the issue is that i want it to be the same as the vanilla trades, but with the diference of the max uses for the stick trade being 12 instead of 16

#

like this

#

or this

#

so i want to change the stick trade individualy

scarlet egret
#

/data modify entity @s Offers.Recipes set value [{maxUses:16}]

#

does this work

#

@soft sinew

soft sinew
soft sinew
scarlet egret
#

right

#

/data modify entity @s Offers.Recipes[0] set value [{maxUses:16}]

#

try this

soft sinew
#

the same happens

#

it trades 12 items as i want but it forgets about the other trade

scarlet egret
#

hmm

#

you did not mention that in your initial question lol

#

maybe

#

try copying the trades to a storage

#

then modifying the first one on the villager

#

removing hte first one from the stoarge

#

and applying all that back to the villager

soft sinew
#

could this work?
data modify entity @s Offers.Recipes[0].maxUses set value 12

soft sinew