Started by
charliecorry1
on
Topic category: User side tutorials
Full detailed step by step below:
- first create a procedure
- add a random block and fix anything so you can save it
- save the procedure
- right click the procedure click lock/unlock mod element and click the ok or lock/unlock code button to lock the code if you unlock the code it will break
- right click the procedure and click open mod element in code editor it might take a while before it opens
- click ctrl and a to select all code
- click BKSP or Backspace to remove all code
- copy the code at end and go to code editor and put ctrl+v to paste it in i must put it at the end so i can include all text
- click ctrl+s to save it then close the code editor
- go to the block you want to be speed pad
- go to triggers tab
- change the trigger for when entity walks on block, when entity falls on block, and when entity colides with block to the procedure click save
- if you want my modle for block i am using mediafire because thats only way i know how to upload files for sharing but go to: https://www.mediafire.com/folder/f80zvci5ifh3y/SpeedPad
- download all 4 files
- go to mcreator
- click recources -> 3D models and texture mappings
- click Import json 3d model
- chose speedpad.json
- click mapping 0
- upload add 3 image files
- for mapping 1 chose speed boost the green one for mapping 1 arrowforspeedboost image
- and for mapping 2 choose Arrow2
- NOTE: mapping is called model texture
- go to the block for speed boost
- for block model chose speedpad it might be called speed_pas because a typo
- go to bottom/main and chose any texture i recommend for a block to create a texture for it because what u chose it what is showed when you are holding it
- at the bottom where you see like visual and triggers click Bounding Boxes and the bounding box that is there click remove this entry
- click add bounding block
- change min x to be o
- change min y to be 0
- change min z to be 0
- change max x to be 16
- change max y to be 1
- change max z to be 16
- make sure the subtract is not checked
- this works in 2025.3 i did not test other versions like 2025.2
- then click save mod element
- test it out
Code For Step 8:
package net.mcreator.blocks.procedures;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.effect.MobEffectInstance;
public class SpeedPadEntityWalksOnTheBlockProcedure {
public static void execute(Entity entity) {
if (entity == null)
return;
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.SPEED, 120, 2, false, false));
}
}