#(edmixx) Falling blocks
31 messages · Page 1 of 1 (latest)
(edmixx) Falling blocks
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.
!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).
Can I have more details, there's nothing written about my question
How to make a tree falling scenario?
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?
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
which kind of falling block do you mean

Yes-yes, that’s right
Sorry, the drawing was cute :3
up
tree
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)
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 😊
about turning the blocks into a model, there's a #showcase script that does this: #showcase message
as for the actual logic of making the tree fall, all i can say is good luck. lol
If you want the whole tree to actually fall, can probably do that use the rotation code that's in there as well ^
You'd have to figure out angles and maybe turn that part of the code into a task specifically for what you need but feel free to use it as a reference :)
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?
block entities / display entities are, as their name suggests, entities. you can see them, but they don't stop your movement like blocks do
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
Thread closed as resolved.
Thread was manually reopened by @young crater.
@young crater please don't open old threads without a reason