Started by
Lemonlime-Alpha
on
Topic category: Help with Minecraft modding (Java Edition)
Ok, so I'm having a problem understanding how to fix this, but I'm trying to make it so when this specific procedure is run, the mob spawns and I get the advancement, but for some reason when I try to spawn it this way (using lightning) the advancement isn't being granted
Here's the image in case anybody needs the reference of code blocks I am using:
You are giving the advancement to the wither skeleton that you just despawned.
To fix this, use "for each entity in square cube of size (size) as entity iterator"
Then, inside that, "if entity iterator is (sub)type player"
"do add advancement (advancement) to entity iterator"
You will need to swap out procedure block parts(most procedure blocks come with event/target entity built in and must be changed to entity iterator), and I have likely gotten the names wrong, but the general idea of the procedure is to check all entities in an area, and if they are players, give them the advancement.
Alright, am testing this now
Well the good news if that I'm getting the achievement, the bad news is that everything keeps disappearing, almost instantaneously
With a bit of tweaking, I figured out how to stop entities from blinking out of existence, but the bad thing being, I'm getting the achievement/advancement from anything that I strike
I have a solution that fixes an enormous amount of weird bugs, and this might be a case where it would be useful, although I'm not positive.
You need to put the entire procedure in an "if" block, then attach a "not" block, then "is provided world client-side"
I'm not entirely sure why, but a lot of things don't always like to work on client-side.
If that isn't able to fix it though, I'm not sure how and you might need to wait until somebody else sees this and answers.
Apologies for being 10 days late, but tested this and not sure what exactly it does? But still have Appreciation for your assistance so far Catnip, thank you for your current help. Now let us wait and see if anyone else does come across and have further ideas.