当前位置:网站首页>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 !
边栏推荐
- 保证接口数据安全的10种方案
- AMB | 迈向可持续农业:根际微生物工程
- 过滤器和拦截器的区别
- 31. Opinion based relational pivoting forcross domain aspect term extraction reading notes
- TransC知识表示模型
- Usage of nn.conv2d and nn.convtranspose2d functions in pytorch
- When AI encounters life and health, Huawei cloud builds three bridges for them
- Stacked noise reducing auto encoder (sdae)
- WPF 常用功能整合
- Minecraft 1.16.5模组开发(五十二) 修改原版生物战利品 (Loot Table)
猜你喜欢

Instructions for various interfaces of hand-held vibrating wire collector vh03

【方差分析】之matlab求解

One stop monitoring of the software and hardware infrastructure of the whole university, and Suzhou University replaces PostgreSQL with time series database

SiamFC:用于目标跟踪的全卷积孪生网络

PyTorch中 nn.Conv2d与nn.ConvTranspose2d函数的用法

Fill in the questionnaire and receive the prize | we sincerely invite you to fill in the Google play academy activity survey questionnaire

Image-Level 弱监督图像语义分割汇总简析

CAS based SSO single point client configuration
Network pictures are transferred locally, causing the kernel to exit

嵌入式开发:调试嵌入式软件的技巧
随机推荐
31. Opinion based relational pivoting forcross domain aspect term extraction reading notes
Siamfc: full convolution twin network for target tracking
VP video structured framework
Lingo软件的使用
Leetcode1170- compare the occurrence frequency of the minimum letter of the string (the corresponding occurrence frequency of each string minimum element in the map set storage array)
智能家居行业发展,密切关注边缘计算和小程序容器技术
Keyboard shortcut to operate the computer (I won't encounter it myself)
【文件上传漏洞-06】分布式配置文件攻击实验—以upload-labs-4为例
[file upload vulnerability-06] distributed configuration file attack experiment - take upload-labs-4 as an example
Realize the full link grayscale based on Apache APIs IX through MSE
Win11 running virtual machine crashed? Solution to crash of VMware virtual machine running in win11
创建Root权限虚拟环境
Siamrpn++: evolution of deep network connected visual tracking
Maya imports the model into unity
SA-Siam:用于实时目标跟踪的孪生网络
请问下大家,flink sql有没有办法不输出update_before?
maya将模型导入到unity
Annotation and reflection
JS wave animation effect menu style
Image-Level 弱监督图像语义分割汇总简析