tryashtar

Results 30 issues of tryashtar

Just opening a bedrock mcfunction file gives a bunch of errors ![image](https://github.com/SpyglassMC/Spyglass/assets/26075577/19141edc-9993-48cd-90f7-8256da2d510f)

/java-edition

The [factorial function](https://github.com/Gunivers/Bookshelf/blob/master/datapacks/Bookshelf/data/bs.math/functions/factorial/factorial.mcfunction) is documented to only work in the range 0-12. This domain is sufficiently small that simply hardcoding all 13 outputs is faster and more obvious than the...

⚡️ Enhancement
👋 Good first issue
module: bs.math

Many users are confused when they see a warning when trying to access, e.g. `components` on an item, if their pack format is out of date. The warning message just...

✨ feature
/mcdoc

The vanilla in-game command interface aggregates all possible property names and values across the tag entries to populate its suggestions, so spyglass should be able to do the same. ![image](https://github.com/SpyglassMC/Spyglass/assets/26075577/5f41009d-4a50-4d8b-bd1d-062252b877ab)...

✨ feature
/java-edition

```mcfunction item replace entity @p horse.14 with stone ``` This command is invalid because players don't have a `horse.14` slot (it's slot 514). Spyglass currently doesn't warn for this, but...

✨ feature
/java-edition

Commands like this one are redundant, since NBT list matches ignore index and quantity: ```mcfunction kill @a[nbt={Motion:[0d,0d,0d]}] ``` Spyglass could detect this and show a warning. As misode aptly pointed...

✨ feature
/mcdoc
/nbt

```mcfunction @ setblock ~ ~ ~ furnace[facing=north,facing=south] ``` This command is invalid because of the duplicate `facing` block state. Currently, it seems that this mistake isn't caught by spyglass. The...

✨ feature
/java-edition

Although spyglass does suggest valid block property keys and values, it doesn't appear to warn you when you use invalid ones. ```mcfunction setblock ~ ~ ~ furnace[facing=qqq,blah=alskdjf] ``` Extension version:...

✨ feature
/java-edition

```mcfunction attribute @p zombie.spawn_reinforcements base set 1 ``` This command is invalid because players don't have the `zombie.spawn_reinforcements` attribute. Spyglass currently doesn't warn for this, but it could in cases...

✨ feature
/java-edition

These commands are invalid: ```mcfunction effect give @e[type=item] slowness enchant @e[type=item] sharpness attribute @e[type=item,limit=1] minecraft:generic.armor get ride @s mount @e[type=marker,limit=1] ``` I think that's pretty much it for commands that...

✨ feature
/java-edition