2024-12-04 23:26:37|Myriagame |source:minecraft skins
principle
The principle is very simple. In fact, when the villagers or stray merchants open the transaction interface each time, the upper limit of the number of transactions is changed to 2147483647, and the number of transactions to 0. Theoretically it is infinite transaction.
Update log
24/11/19:
Fixed an abnormal price of the items caused by the calculation of the villagers' replenishment (directly disabled the replenishment price adjustment)
Add new features: Right -click the fool villager Green robe His Holiness will turn the villagers into unemployment
Fixed a small number of bugs
Code
The code is placed in server_scripts
Itemevents.entityInteracted (event => {Const {target} = EVENT
Const EntityLists = ['Minecraft: Villager', 'Minecraft: Wandering_trader']
If (entityLists.indexof (target.gettype ())! = -1) {
Let data = target.getnbt ()
If (data.villagerdata.profession == 'Minecraft: nitwit') {{
Data.villagerdata.profession = 'MINECRAFT: None'
}
If (data.offer) {
For (var I = 0; I
Data.offers.Recipes [i] .maxuses = nbt.i (2147483647)
Data.offers.Recipes [i] .uses = nbt.i (0)
Data.offers.Recipes [i] .Remove ('Demand')
}}
Target.setnbt (data)
}
})
Regarding the amendments of the villagers/simple villagers, the principle is the same.
The code is also placed in server_scripts
Code:
blockevents.rightClicked (event => {Const {block} = EVENT
Const blockLists = ['Easy_villagers: Trader', 'Easy_villagers: Auto_Trader']
IfckLists.indexof (block.getid ())! = -1) {
Let data = block.GetentityData () ()
If (data.villager.tag.villager.villagerdata.profession == 'MINECRAFT: NITWIT') {{
Data.villager.tag.villager.villagerdata.prFession = 'Minecraft: None'
}
If (data.villager.tag.villager.offers) {{
For (var I = 0; I
Data.villager.tag.villager.offers.Rcipes [i] .maxuses = nbt.i (2147483647)
Data.villager.tag.villager.offers.Rcipes [i] .uses = nbt.i (0) data.villager.villager.offers.recipes [i] .remove ('demand')
}
}
Block.setentityData (data)
}
})
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22