#Check if a block can suffocate an entity
1 messages · Page 1 of 1 (latest)
i mean you could mixin/asm into the block and modify it is behavior :p
That's not an option on Spigot sadly
actually it is an option
I mean yes it is an option
if you add mixins into your project it should work
^^ You need something like Ignite to bootstrap Mixins
Not all users can or are willing to install it
It's for work stuff so we can actually do that
you can include stuff into jar right?
The jar loads too late
^
what about just ASM
i saw many plugins just using patches
Still too late
I just need to check if suffocation can happen
Actually no
The JVM has full support for hotswapping method bodies
at any stage
well you either do check every tick or modify a block behavior
you have two choices lol
Hotswapping support varies from JVM to JVM
I mean yeah fair point
So what's the goal?
Yeah no the code runs to block stuff in the future, I can't really just check
Blocking some spawning stuff ig
or is there block collision event in spigot
If you want to detect suffocation damage you can just use a listener
Yeah but the problem is I need to first check if I can spawn something at XYZ
and if it would suffocate there based on it's bounding box
How would hotswapping a method body help there?
Talking to @analog wedge about how you can still edit it
I wouldn't edit a method body lol
we have an internal version of the fabric loader instead
but I could
you could always use fabric 
.
We modded fabric
lmao
Anyways I don't want to change the glass block's behavior
It is not what I need
I just need to check if at XYZ an entity can suffocate
I could spawn an entity and not send it to players to check, but like that's no-no performance
wouldnt it be a method inside block call in Minecraft?
look into how game implements suffocate
yeah
Ignite provides access widerners if required
.
We already checked Ignite
then just use that
Take a look at how Minecraft checks suffocation
doing that