Skript

Skript

743k Downloads

Add a store method to spawn effect

EquipableMC opened this issue ยท 4 comments

commented

Suggestion

I feel like you should be able to do (optionally) spawn x and store it in {_var} without having to do set {_x} to last spawned entity after the spawn effect.

Why?

What this does is, is spawn whatever x is and it will be saved in that variable so u can use it in the rest of your code. This is similar to how DiSky does their store stuff in their own addon, which I find pretty useful

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.
commented

Why not use spawn sections instead

commented
  1. I agree with Phill, the spawn section is what should be used here
  2. While I understand Disky (and other addons do this) in my opinion it doesn't look pretty and it doesn't really flow with Skript

tl;dr:

  • spawn section
  • last spawned entity expression
commented

We don't really want to introduce this bad design of syntax, the spawn section should be able to help you with this since you can use its local event entity.

commented

Fair enough, I understand