Started by
Airflected
on
Topic category: Help with Minecraft modding (Java Edition)
I would like to know how to make a boss that spawns like an Iron Golem or Wither. You place 4 modded blocks and a pumpkin on top and the boss appears. I know that it might be complicated, but I want to know if there is a way to make that happen. Thanks in advance for any of the help.
Maybe make a procedure for when you place the block it detects if the block under it is the modded block and underneath that one is also the MB and than the one under the pumpkin to the right and the left is the MB. Then remove the blocks and spawn the entity. If that makes sense.
I'm kind of new to modding and pretty stupid. How do I do that?
Actually note that I Think of it this could be complicated because of rotations and stuff. So maybe just do the Snow Golem structure instead of the golem/wither one.
That would be a procedure with the global trigger: Player places block (or something like that)
If: [Block at x y z is (pumpkin)]
Do: If: [Block at x y-1 z is (a block)]:
Do: If: [Block at x y-2 z is (block)]:
Do: [Place Block at x y z (air)]
[Place Block at x y z (air)]
[Place Block at x y z (air)]
Spawn at x y z (Mob)
Hope you figure that out!
(you can get the equation (y-1) by looking in the math area and putting the y and 1 in there) (make sure that all the ifs are in side of each other!)
Also if you look at what I said there is some stuff to the left. That was supposed to be on the right but the text box cut it off :(
Didn't get to try it yet. Trying it rn.
What do I use for the If: [Block at x y z is (pumpkin)]. Can't find it.
Step 1: Get the "If, do" block from the logic and loops section (not the "If, do, else", or the "if, do, else if, do," just the "If,do")
Step 2: Get the yellow equation from the logic operations section
Step 3: Get the "Get block at x: x, y: y, z: z," and put it in the first part of the equation
Step 4: In the Minecraft Components section, get the yellow slot and put it in the second part of the equation.
Step 5: Double click the slot and choose pumpkin
I've created a test procedure, placed the blocks but nothing happens. Here is the image of the procedure
https://imgur.com/a/cKLIKk8
For the (-1) and (-2) it should actually be:
[y - (1)], And [y - (2)] like a math equation, you can get it from the math section. Also, one of the place air block should have (y-1) and one of them should have (y-2).
(you can get more (y) blocks from the Minecraft Components section, I think)
Thank you so much! I cannot stress how thankful I am. I know that I was kind of annoying but now it works. I am extremely sorry for the inconvenience caused, I'm new at modding and procedures can be stressful. Once again, thank you! :D
You're welcome! (And sorry, I should have included that last comment in the first one)