#How do I stop my entity from getting on the boat?
1 messages · Page 1 of 1 (latest)
Huh
You should edit the boat's minecraft:rideable component to only allow certain entities, here is an example:
"minecraft:rideable": {
"seat_count": 2,
"passenger_max_width": 1.375,
"interact_text": "action.interact.ride.boat",
"pull_in_entities": true,
"seats": [
{
"position": [
0.0,
-0.2,
0.0
],
"min_rider_count": 0,
"max_rider_count": 1,
"rotate_rider_by": -90,
"lock_rider_rotation": 90
},
{
"position": [
0.2,
-0.2,
0.0
],
"min_rider_count": 2,
"max_rider_count": 2,
"rotate_rider_by": "query.has_any_family('blaze', 'creeper', 'enderman', 'illager', 'magmacube', 'piglin', 'player', 'skeleton', 'slime', 'villager', 'wandering_trader', 'witch', 'zombie', 'zombie_pigman') ? -90 : 0",
"lock_rider_rotation": 90
},
{
"position": [
-0.6,
-0.2,
0.0
],
"min_rider_count": 2,
"max_rider_count": 2,
"rotate_rider_by": "query.has_any_family('blaze', 'creeper', 'enderman', 'illager', 'magmacube', 'piglin', 'player', 'skeleton', 'slime', 'villager', 'wandering_trader', 'witch', 'zombie', 'zombie_pigman') ? -90 : 0",
"lock_rider_rotation": 90
}
],
"family_types": [
"player",
"zombie"
]
}
How do I stop one type of family from being able to get on the boat?
You can list the families that can, and if any are not on the list then they cannot. You can list the player and mob families, this should affect almost all types of entities (players, monsters, animals), in your entity you do not put any of these family types.
okay
thankys
@next smelt There is a boat with a trunk, how can I find it in the game files?
nice