SkriptLang / Skript

Skript is a Spigot plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
https://docs.skriptlang.org
GNU General Public License v3.0
1.07k stars 369 forks source link

Problem while spawning some entities #414

Open Snow-Pyon opened 7 years ago

Snow-Pyon commented 7 years ago

Server version: 1.11.2 (recently compiled from BuildTools) Skript versoin: dev24b

I've tried to spawn the following entities but it doesn't seem to be possible:

For the item frame would be cool if you can spawn them with an item on it, something like:

item frame[s] [with %itemtype%]

or even more if you could select the rotation of the item:

item frame[s] [with %itemtype% [and rotation %number%]]

same for paintings, select the painting type like:

painting [of %art%] #a new type might be needed

Also, some expressions like:

display item of %entity%
%entity%'s display item
rotation of %entity%
%entity%'s rotation

for item frames and:

art of %entity%

for paintings would be cool.

And finally for dropped items, something like:

dropped %itemtype%

obviously those are just suggestions, be able to spawn them would be more than sufficient.

Syst3ms commented 7 years ago

All of that could be done, except spawning a human but I don't quite know what you mean, so don't quote me on that. I was planning to add boat support to QuarSK but being able to spawn one in Skript would be better (doesn't mean there won't be boat support though). As for the syntax to spawn item frames, I don't think %entity type% supports expression, so it would either be having a custom effect, or allow simple spawning of one and add expressions to change data after. Both of them are the same, but the first one requires less Skript code. Same for paintings, a type would be easy to do.

Snow-Pyon commented 7 years ago

@Syst3ms there is a human entity type, it's like an alias of player, it would be for spawn fake players, NPC or however you want to call it. Anyways, I don't think there will be a support for this in Skript anytime soon such as spawn fake players require some NMS stuff.

What do you mean by %entity type% doesn't support expression? As far I know the entity type falling %itemtype% is a thing in Skript.

bensku commented 7 years ago

Spawning a human would require heavy NMS hacks. Other suggestions are good.