Create

Create

86M Downloads

Villager Curing

isaaclepes opened this issue ยท 2 comments

commented

Describe the Suggestion

The deployer is able to cure a zombie villager, but the villager's NBT data is not updated with any major_positive gossip. If the deployer were to actually present a UUID, either a fake one or definable in the config, it would automate this process nicely.

If it uses a fake UUID, that should still be enough for something like this datapack to update the major_positive to include all players on the server.

https://www.planetminecraft.com/data-pack/global-trades/

Screenshots and Videos

No response

Additional Context

No response

commented

Villager curing bonuses are player-specific. I'm sure the villager would be very grateful to the machine that healed it, it just likely isn't going to engage in commerce with it.

commented

Yeah, I was hoping it could do something like the datapack I linked does. For that, if a villager shows minor negative gossip from the zombie turning them in it's NBT, the datapack will then update the major/minor positive gossip with the UUID's of the online players to allow all players to receive the bonus. The idea would be that when curing a zombie villager via machine, the mod could update the gossips with the online players.

Excerpts:
execute at @A as @e[type=villager,limit=10,sort=nearest,distance=..20,nbt={Gossips:[{Type:"minor_negative"}]}] run function globaltrades:major

data modify entity @s Gossips append value {Target:[I;1,1,1,1],Type:"major_positive",Value:85}
data modify entity @s Gossips[{Target:[I;1,1,1,1]}].Value set from entity @s Gossips[{Type:"major_positive"}].Value
data modify entity @s Gossips[{Target:[I;1,1,1,1]}].Target set from entity @p UUID

All in all, I was wanting this for an automated zombification/cure station. I ended up using another mod called Easy Villagers (https://www.curseforge.com/minecraft/mc-mods/easy-villagers ) which uses special blocks and will apply the cures as the player that placed down the special block. It isn't nearly as cool as a Create mod Rube Goldberg machine that does it. From there I have a customized version of the global trades datapack that instead detects when a villager has major positive and updates it for all online players.