#Custom Block Uses for PVP
1 messages · Page 1 of 1 (latest)
The tnt is just itemUse im guessing?
wow
yeah more or less lmao
that and entityDespawn
how did you made that cobweb?
Would assume that he just detects when a cobweb is placed using the block place event and in return it will run a timeout on the block to set it to air
not quite, I set dynamic properties to store information on the cobweb like duration and location, and then iterate through it
which, while admittedly overcomplicating it, is better because in the event that the chunk gets unloaded or the realm/server crashes it won't stay thyere permanentlly
Oh cool
is it possible for you to give me the code of that mechanism?
I would, but it uses prototypes and other classes I've made so it would need to be recoded, I can send some psuedocode for it later on this post though if you'd like
that would be awesome
beforeBlockPlace
if (block is not cobweb) return and cancel
set block dynamic property for the location and time to expire
runInterval
for each block dynamic property
if block timer has expired
try to delete block and clear dynamic property (delete block first)
catch and do nothing
@viral shuttle
thanks i appreciated