Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Either by making sure it finds no valid target by type, or with setting the radius to 0, it should do what you want. If you know how to spawn custom objects (vanilla item spawning command), you could make custom doors that do what you want.
"queryOpenRadius" : 0
There are other things you can change, if you look at the top pinned thread above.
My Support Drones mod handles doors this way:
- Drone pathfinder finds a wall and detects it to be a door (via hasCapability("door"))
- Drone, while following the path, checks if the door is closed (via hasCapability("closedDoor")
- If it finds a closed door in its path, it will open it (via calling onInteraction with object {source={mcontroller.facingDirection()}}
The drones are monsters.
I haven't looked at your code, but it might be unable to perceive the possibility of a monster opening a door.
Or it needs an entity id in the table passed to onInteraction. (The data provided by the drone for that call is incomplete)
This is so if your traveling at a good speed (hover bikes or techs), you shouldn't crash into doors.
You can custom spawn your doors though: see the pinned threads?
But should I ever come to it, be sure that these requests are on the bucket list.