マイクラの配布サイト › フォーラム › 技術相談(統合版) › 車アドオンのプログラムの問題点を教えてほしです。
- 投稿者投稿
Arusu参加者下のプログラムの問題点を教えてほしいです↓。
{
“format version”: “1.21.14”,
“Minecraft: entity”: {
“description”: {
“identifier”: “car:car_lb”,
“is_spawnable”: true,
“is_summonable”: true,
“is_experimental”: false,
“animations”: {
“drive”: “animation.car.drive”
},
“scripts”: {
“animate”: [
“drive”
]
}
},
“components”: {
“minecraft:is_hidden_when_invisible”: true,
“minecraft:type_family”: {
“family”: [ “car” ]
},
“minecraft:collision_box”: {
“width”: 2.0,
“height”: 1.5
},
“minecraft:health”: {
“value”: 20,
“max”: 20
},
“minecraft:rideable”: {
“seat_count”: 1,
“seats”: [
{
“position”: [ -0.5, 0.5, 0.5 ],
“min_rider_count”: 0,
“max_rider_count”: 1,
“lock_rider_rotation”: false
}
]
},
“minecraft:leashable”: {},
“minecraft:nameable”: {},
“minecraft:movement.amphibious”: {
“max_speed”: 0.4
},
“minecraft:input_ground_controlled”: {},
“minecraft:behavior.float”: {
“priority”: 0
},
“minecraft:behavior.random_look_around”: {
“priority”: 4
},
“minecraft:timer”: {
“looping”: true,
“time”: 0.05,
“time_down_event”: {
“event”: “car:drive_logic”
}
},
“minecraft:navigation.walk”: {
“can_path_over_water”: true,
“can_walk”: true,
“is_amphibious”: true,
“is_pathfinding_enabled”: true,
“can_ride”: true,
“max_step”: 1.0
}
},
“events”: {
“car:drive_logic”: {
“run_command”: { //
“commands”: [
“execute as @s at @s if entity @s[has_rider=true] run tp @s ~ ~ ~ facing entity @s[family=player, r=10]”,
“execute as @s at @s if entity @s[has_rider=true] run tp @s ^ ^ ^0.15”
]
}
}
}
}
}
- 投稿者投稿

