当前位置:网站首页>Minecraft 1.16.5 module development (52) modify the original biological trophy (lot table)
Minecraft 1.16.5 module development (52) modify the original biological trophy (lot table)
2022-07-26 14:49:00 【Jay_ fearless】
Today, we try to modify the fallen objects of some creatures in the original
1. What we revised this time is in the original Zombie Falling objects of , So we need to find the original Zombie List of trophies :
zombie.json
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 0.0,
"max": 2.0
},
"add": false
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0.0,
"max": 1.0
}
}
],
"name": "minecraft:rotten_flesh"
}
]
},
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot"
},
{
"type": "minecraft:item",
"name": "minecraft:carrot"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:furnace_smelt",
"conditions": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"flags": {
"is_on_fire": true
}
},
"entity": "this"
}
]
}
],
"name": "minecraft:potato"
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
},
{
"condition": "minecraft:random_chance_with_looting",
"chance": 0.025,
"looting_multiplier": 0.01
}
]
}
]
}
Basic parameters of booty :
"type": "item",
"name": "minecraft:gold_nugget", # The specific name of the falling object
"weight": 5, # Drop weight
"functions": [
{
"function": "set_count",
"count": {
"min": 0, # Drop at least a few at a time
"max": 2 # At most a few at a time
}
}
2. Find the resource package of the module , stay src\main\resources\data Under the new minecraft package -> stay minecraft New in package loot_tables package -> stay loot_tables New in package entities package -> stay entities Create our new zombie.json file :

zombie.json
{
"type": "minecraft:entity",
"pools": [
{
"name": "main",
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:gold_nugget",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"weight": 5,
"name": "minecraft:diamond",
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"weight": 3,
"name": "minecraft:iron_ingot",
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "item",
"weight": 5,
"name": "minecraft:emerald",
"functions": [
{
"function": "set_count",
"count": {
"min": 2,
"max": 3
}
}
]
}
]
}
]
}
3. Enter game debugging :
We give zombie Set to drop diamonds 、 emerald 、 Iron ingots and other items :
Drop after killing :

All the falling objects appeared , In line with expectations !
边栏推荐
- 【1.2.投资的收益和风险】
- Minecraft 1.16.5模组开发(五十二) 修改原版生物战利品 (Loot Table)
- UE4 smart pointer and weak pointer
- 【使用工具条绘图】
- Unity learning notes – infinite map
- llcc68广播唤醒简单说明
- Realize the full link grayscale based on Apache APIs IX through MSE
- PyTorch中 torch.nn与torch.nn.functional的区别
- 【2022国赛模拟】白楼剑——SAM、回滚莫队、二次离线
- 14. Bridge-Based Active Domain Adaptation for Aspect Term Extraction 阅读笔记
猜你喜欢

【常微分方程求解及绘图之求解小船行走轨迹】

JS creative range select drag and drop plug-ins

Pokemon card evolution jsjs special effect

【1.2.投资的收益和风险】

嵌入式开发:调试嵌入式软件的技巧
![[untitled]](/img/50/7aa01f1d8657700a11cbc26290804a.png)
[untitled]

键盘快捷键操作电脑(自己遇到不会的)

Flask send_ Absolute path traversal caused by file function

JS analog clock with text label

Arithmetic operation and logic operation of image in opencv
随机推荐
Sqldeveloper tools quick start
OpenCV中图像算术操作与逻辑操作
postman 环境变量设置代码存放
SiamRPN:建议区域网络与孪生网络
Parsing XML files using Dom4j
Difference between filter and interceptor
基于CAS的SSO单点服务端配置
Would you please refer to the document of Database specification?
精益产品开发:原则、方法与实施
Keyboard shortcut to operate the computer (I won't encounter it myself)
CAS单点登录
llcc68广播唤醒简单说明
Wechat applet - "do you really understand the use of applet components?
嵌入式开发:调试嵌入式软件的技巧
14. Bridge based active domain adaptation for aspect term extraction reading notes
【使用工具条绘图】
Tdengine helps Siemens' lightweight digital solution simicas simplify data processing process
JS wave animation effect menu style
Self encoder AE (autoencoder) program
Fill in the questionnaire and receive the prize | we sincerely invite you to fill in the Google play academy activity survey questionnaire