#(edmixx) Falling blocks

31 messages · Page 1 of 1 (latest)

vocal cradle
#

Good evening! Does anyone know how to make falling blocks in denizen? For example, a tree fell after you approached it closer than 5 blocks

lethal islandBOT
#

(edmixx) Falling blocks

lethal islandBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

nimble plaza
#

!xy

night raftBOT
# nimble plaza !xy
Info: xy

Your question seems to be an XY Problem - you're asking about your attempted solution rather than your original problem.
Read in detail about the XY Problem here: http://xyproblem.info/

For an example of an XY Problem we've seen in Denizen, the question "how do I make an event for when a flag expires" has no answer, but the same question asked with full background detail will be something more like "I have this script: [LINK HERE], which sets a 3 minute cooldown flag on a player for when they use an ability. I want the player to be notified when the cooldown completes - how do I do this?" which we can then answer quite effectively (in this example, all that was needed was a simple wait command, no events or flag-listening or anything).

vocal cradle
#

Can I have more details, there's nothing written about my question

#

How to make a tree falling scenario?

scarlet token
#

You said for example - are you specifically trying to make trees fall? or any block? if just trees, do you want to give them gravity and have the leaves fall down? or have them fall over when chopped down?

vocal cradle
#

No, just like a special effect, like a screamer. When you come close to the tree, it falls completely along with the foliage

#

Maybe you want to clarify something else? I just want it to look spectacular

pseudo tundra
#

which kind of falling block do you mean

cursive turtle
vocal cradle
cursive turtle
#

Sorry, the drawing was cute :3

visual vapor
#

up

vocal cradle
scarlet token
#

That's mostly just a bunch of math to do the rotations then - easiest way would be to hard-code some tree models in, but assuming you want it to be a dynamic thing based on the tree - you'd need to go over each block in the tree, remove it & spawn a block display entity in it's place, then change it's translation and rotation at the exact same time, or maybe have them all in the same block and use translation to position them so that they're all rotating around the same spot (can't really tell you what specific rotations/math you'd need offhand, mostly a try it and see thing)

vocal cradle
#

thank you…

#

One more thing, maybe someone has already encountered this and can read about it somewhere? Or is there an article about denizen scripts about various interesting effects in Minecraft? Can you give me some advice, I will be very grateful 😊

pseudo tundra
#

as for the actual logic of making the tree fall, all i can say is good luck. lol

hidden gull
vocal cradle
#

Can I explain what the technique of the script itself is? Because I think it will take me a lot of time to learn this script and remake it. If you can explain some main points to me, I will be grateful)

#

And the moment of interest when the body is in an arbitrary position, is it not subject to physics? So you can go through it?

pseudo tundra
#

block entities / display entities are, as their name suggests, entities. you can see them, but they don't stop your movement like blocks do

honest shaleBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@vocal cradle

honest shaleBOT
#
Resolved

Thread closed as resolved.

honest shaleBOT
#
Thread Reopened

Thread was manually reopened by @young crater.

sullen ermine
#

@young crater please don't open old threads without a reason