My Variable is only coming up false

Started by Blocky_Beggar on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My Variable is only coming up false

Im trying to add an information block that gives you information in a GUI about were it is placed. My information so far is SkyView. I figured everything out except the sky view always says false even when it has a sky view.

The procedure: https://ibb.co/YtvnJVS

MCreator GUI: https://ibb.co/2yR6MwP

Minecraft GUI: https://ibb.co/BG74jNn

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In order to save NBT in a…
Mon, 07/05/2021 - 19:06
  1. In order to save NBT in a block, you have to use the following procedure block:
    [Set NBT logic tag "CanSeeSky" of block at X Y Z to "true/false" if it has tile entity.]
  2. This would make your code much shorter:
    [Set NBT logic tag "CanSeeSky" of block at X Y Z to [Can location at X Y+1 Z see the sky] if it has tile entity.]
  3. You don't have to use a procedure block to open a GUI of a certain block.
    Just go to "InformationBlock" > Tile Entity.
    Select "InfoBlockGUI" in Bind this block to GUI.
    And enable Open bound GUI on right click by clicking on the checkbox.
    Here's a picture: Screenshot