#Ad Astra Suffocation
34 messages · Page 1 of 1 (latest)
Ticket re-opened!
@grizzled heron do you know how ad-astra suffocates mobs/players? do they have their mobs on mars? you may check what make them to survive
thx ill look
i looked through the github page and I could not find the code that makes them live
maybe join their discord or something and ask how to make mobs survive there
or ask #off-topic if anyone know about that from ad-astra how it works
maybe someone now
know*
I was able to find a little bit of relevant information
ModEntityTypeTags.LIVES_WITHOUT_OXYGEN is a thing in this github page.
Perhaps more relevant is the page OxygenApiImpl.java: entities with the ModEntityTypeTags LIVES_WITHOUT_OXYGEN or CAN_SURVIVE_IN_SOACE don't get hurt, entities wearing space suits don't get hurt, and entities in oxygen-filled environments don't get hurt.
So basically you need to find a way to add the ModEntityTypeTag CAN_SURVIVE_IN_SPACE to the dragons. I suggest EntityJS, specifically entity modification.
EntityJSEvents.modifyEntity(event=> {
event.modify("iceandfire:fire_dragon_female", modifyBuilder => { // Is that the right entity ID?
//Hold on, I'm in the process of writing this I'll edit it in one second
modifyBuilder. // Uh... actually, I don't know what to put here yet
})
})
OK, well, I'm not sure yet what to put in that script, but I found where Ad Astra adds entities to these entity tags
So this may not be a matter of EntityJS; I'm not sure.
I looked at the entity modification tab, but it only talked about attributes not tags
I was told that this might work, because it is the same format as adding tags to items but it didn't
entity_types instead of entity
it still dies
see if it worked with /forge tags minecraft:entity_types get ad_astra:can...
@grizzled heron
ill try
also shouldn't be lives_without_oxygen ?
no, also needs can survive in space
you need both
and test /forge tags command I said
to check if it applied
i did this and it didn't work
@grizzled heron try entity_type