nlipiarski / MCC

Marshal Command Code Syntax Highlighter
GNU General Public License v3.0
14 stars 2 forks source link

Attribute syntax #60

Closed MattCM closed 5 years ago

MattCM commented 5 years ago

MCC issue

MCC makes correctly syntaxed mob attributes in NBT data as incorrect.

image

summon zombie ~ ~ ~ {Attributes:[{Name:"generic.followRange",Base:100.0}]}

nlipiarski commented 5 years ago

MCC requires a slightly stricter syntax in NBT in order to accurately highlight the values in NBT. In this case, Base:100.0 needs to have the d suffix to tell MCC it is a double value. You will need to do summon zombie ~ ~ ~ {Attributes:[{Name:"generic.followRange",Base:100.0d}]} instead.

MattCM commented 5 years ago

Thanks 42iscool42! I knew this and have been using the d suffix on other double values, silly me!