需求:
在指定维度的指定坐标范围内钓鱼,会有10%的概率钓到一条有指定命名(中文)的鱼,同时有5%的概率钓到另一条也有指定名字(中文)的鱼。
或者
在指定结构内钓鱼,会有10%的概率钓到一条有指定命名(中文)的鱼,同时有5%的概率钓到另一条也有指定名字(中文)的鱼。
需要完整的json文件哦,或者贴代码出来也行
只能写成数据包
Supper_Zero 发表于 2019-6-27 15:36
只能写成数据包
可以的,就是数据包里面的那个文件
感应和材质包
本帖最后由 SPGoding 于 2019-6-27 21:51 编辑
推荐使用https://github.com/SPGoding/minecraft-json-schemas-zh_CN
这个回答用它写只消耗了我两分钟
代码:
- {
- "type": "minecraft:fishing",
- "pools": [
- {
- "entries": [
- {
- "type": "minecraft:item",
- "weight": 10,
- "name": "minecraft:cod",
- "functions": [
- {
- "function": "minecraft:set_name",
- "name": "指定命名"
- }
- ]
- },
- {
- "type": "minecraft:empty",
- "weight": 90
- }
- ],
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "position": {
- "x": {
- "min": 0,
- "max": 0
- },
- "y": {
- "min": 0,
- "max": 0
- },
- "z": {
- "min": 0,
- "max": 0
- }
- },
- "dimension": "minecraft:overworld"
- }
- }
- ]
- },
- {
- "entries": [
- {
- "type": "minecraft:item",
- "weight": 5,
- "name": "minecraft:cod",
- "functions": [
- {
- "function": "minecraft:set_name",
- "name": "指定命名"
- }
- ]
- },
- {
- "type": "minecraft:empty",
- "weight": 95
- }
- ],
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "position": {
- "x": {
- "min": 0,
- "max": 0
- },
- "y": {
- "min": 0,
- "max": 0
- },
- "z": {
- "min": 0,
- "max": 0
- }
- },
- "dimension": "minecraft:overworld"
- }
- }
- ]
- }
- ]
- }
推荐使用https://github.com/SPGoding/minecraft-json-schemas-zh_CN
这个回答用它写只消耗了我两分钟
SPGoding 发表于 2019-6-27 21:50
推荐使用https://github.com/SPGoding/minecraft-json-schemas-zh_CN
这个回答用它写只消耗了我两分钟
就是你了
SPGoding 发表于 2019-6-27 13:02
推荐使用https://github.com/SPGoding/minecraft-json-schemas-zh_CN
这个回答用它写只消耗了我两分钟


咋回事?我是直接复制的
SPGoding 发表于 2019-6-28 06:40
好见鬼,格式应该没错的啊…
你看下文件编码是不是 UTF8 无 BOM,虽然我觉得关系可能不大 ...
用vscode自动格式化以后就不出这个问题了,转而出另外跟你说的那个问题……