Started by
WolfmanFrey
on
Topic category: Advanced modding
So I am looking to remove blocks based on the local facing of the player and not global coordinates. In MCreator 1.7.8 there was ijk and now in the new procedure system, I only see xyz. Am I missing something?
You didnt miss anything, they still works same as IJK they changed name only to I = X , J = Y and K = Z
Well my issue I'm having is this:
Goal → A pickaxe that removes targeted block plus a block past the targeted block (one block behind targeted block in the player forward direction, local Z axis).
Problem → But with the new Procedure system, the modifier "Z+1" removes a block in the positive Z axis of the world regardless of the players current facing. So if the player look down the X axis of the world and uses the pickaxe, the target block and the block to the right or left will be removed and not the block behind the targeted block from the player viewpoint.
@Wes:
Are you able to make a pickaxe that removes blocks in single direction baked on the players facing? If so may I see a snap shop of the procedure?
I'm afraid that it's currently impossible to do it threw processes but I will try to do something similar as soon as possible
I look forward to seeing what you come up with. I think you understood what I was driving at after my second post. Thanks for the help thus far.
WolfmanFrey: what you are trying to achieve was not possible in event system and neither is in procedure system. We plan to add support for event face detection, but this is not supported yet and never was.
All you can really do is make it remove a 3x3 cube or something similar.
I think it is possible the :
event (click in air) = local coords "where you stand"
event (click on block) = "pointed or Look at" coords
You could assign the coords to variables as they are given the same name i j k in each event
I stumbled on this when trying to figure out a teleport mod I was working on.
Think of it like this, If you wanted lightning to strike using the click on block event works different than click on air. If you use click on air the lightning strike hits you and click on block strikes the block you point at.
I see the problem now I guess you'll need a custom code that will take your standing coords an extrapolate the direction and proceed from there. hmm