Started by
__SK__
on
Topic category: User side tutorials
Option #1
Step one:
- Go to Blockbench and create a distracting block.
- make sure it is minimum 16Lx16Wx(any height)
- Go to Display, and set everything however you like, except the Frame section.
- The Rotation - change it to -90, 0, 0
- In the frame section, make the scale 2, (whatever number), 2
- The translation, change it to cover the picture frame, and align it with the box.
- Save texture and export model, then import it as block in MCreator.
That was a long and yet easy step one.
Now run the Client, and follow the animation.
Pay close attention to that pixel between the plate and the block. Place a picture frame there. Now, step on the pressure plate to place the model/block. If you want to rotate the model/block, just right click it. You can create as many models as you like, but they must be added as blocks.
Option #2
Another way to go with these custom/cloaked/hidden pressure plates is:
- In MCreator add a block, let's call it test123 make it a pressure plate
- change the properties, triggers, etc - you could also disable the sound
- once done, save it
- now, lock the code
- go to your workspace resource pack and look in models folder
- open the model test123 and test123_down (both are *.json) in Blockbench
- create a model just like the one I explained before - make your own (no need to do the frame section portion)
- save the texture then the model for test123 and use the same model for test123_down
-
go back to MCreator - But DO NOT unlock that code for the 123test
- Run the client and see the results
You will have a custom pressure plate created with MCreator without requiring additional coding.
Have fun.
Edited by __SK__ on Mon, 01/10/2022 - 19:48
Or you could go to this website: Minecraft model animator (vberlier.github.io)
Animate your block. Make 3 blocks. 1 without pressed, 2 pressed and 3 the animation, make block number 2 emit redstone power and when something steps on block 1 it replaces it with 3 and when 3 finishes animation replace to 2. Then when 2 has no one on top replace to 1 again.
is there a way to make a custom hitbox too ?
Possibly, it depends on what you are trying to create. Basically, that tutorial was an early attempt to make custom pressure plates because I wanted to conceal them. Adding a custom hitbox to a block is creating a bounding box. For the pressure plate you could try changing the code, create a new model for it, and adding something like the following inside the class (you should compare the size with your Blockbench model).
And then lock the code.