What happened to local coordinates, ijk?

Started by WolfmanFrey on

Topic category: Advanced modding

Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What happened to local coordinates, ijk?

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?

Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You didnt miss anything,…
Thu, 05/10/2018 - 13:44

You didnt miss anything, they still works same as IJK they changed name only to I = X , J = Y and K = Z 

Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well my issue I'm having is…
Thu, 05/10/2018 - 16:03

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?

Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm afraid that it's…
Thu, 05/10/2018 - 17:32

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 

Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I look forward to seeing…
Mon, 05/14/2018 - 16:16

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…
Mon, 05/14/2018 - 18:16

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.

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
All you can really do is…
Tue, 05/15/2018 - 07:19

All you can really do is make it remove a 3x3 cube or something similar.

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think it is possible the :…
Tue, 05/15/2018 - 17:27

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.

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Think of it like this, If…
Tue, 05/15/2018 - 17:30

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.

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I see the problem now I…
Tue, 05/15/2018 - 17:39

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