Started by
Cassandra
on
Topic category: Help with Minecraft modding (Java Edition)
Hello! I've been making some tools but I've become stuck on trying to give them the ability to make a path by right clicking (like a vanilla shovel) or a fire on right clicking (like a vanilla flint and steel).
If anyone could tell me how to make the procedures for those effects I would really appreciate it!
on right clicked on block procedure trigger:
if(get block at x y z = *insert block*){
//something happens
}
I could elaborate more if you have more specific needs
Thank you! I have been able to it to create fires but it replaces the block I click on with a fire block.
I'm a bit stuck with how to get it to check the space above the block I click on is empty and then create a fire there.
if(get block at x y+1 z=air){
placeblock(x,y+1,z,fire)
}