why we can't do this ?

Started by Skill3r128 on

Topic category: General discussion

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
why we can't do this ?

Hi,
I was wondering why it was impossible to do a procedure:

If: [is (block here) = (stone) or (dirt)]

but only:
if: [is (block here) = (stone)]
or: [is (block here) = (dirt)]

Doesn't it slow down the game to always look for the block at xyz when you can keep xyz in memory if you have 10 blocks that you want to choose without wanting to make a useful tag in a single situation?

Sorry if this is in the wrong place I just wanted to know and no other forum seems correct

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use tags instead
Tue, 10/22/2024 - 16:17

You can use tags instead

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you don't answer the…
Tue, 11/26/2024 - 17:37

you don't answer the question because I'm asking why. Not how to do it differently.

I have another question that is blowing my mind. since Mcreator has not added the functionality on the shield to take damage (especially in connection with unbreaking) I cannot do that:

(for main or off hand the same)
If MainHandItem(MHI) = CustomShield
->If MHI have unbreaking
-->If (Rnd 0,1) < 1/ UnbreakingLvl +1 #ex MHI U1: if [rnd < 0.5]
--->Deal 1 damage to MHI 
Else Deal 1 damage to MHI #If not unbreaking

i use puzzle not code.

Actually if unbreaking is not on it it takes durability, but if the object has unbreaking nothing happens.
i can't understand the problem.