#display items not summoning

1 messages Β· Page 1 of 1 (latest)

steel pawn
#

Again, working on a custom powers and find myself struggling with summoning a item display that has custom attributes, my code said it had 0 errors and everything else works apart from the item display with custom attributes, any ideas?

ebon ice
#

care to show your code

steel pawn
#

i was copying it rn actually

#

if difference between now and {EquipShard::%player's uuid%.hidden.lastUsed} is less than 25 seconds: # this is the hidden ability
{EquipShard::%player%.cooldowntime} is 0
send action bar "🎭 Power is Drained" to player
set {EquipShard::%player%.cooldowntime} to 1
wait 25 seconds
send action bar "🎭 Power is Full" to player
set {EquipShard::%player%.cooldowntime} to 0
else:

     #player is sneaking 
     {EquipShard::%player%.shards} is 5
     execute console command "execute at %player% run summon item_display at %player% {Glowing:1b,view_range:100f,shadow_radius:1f,item:{id:"" minecraft:armor_stand"",count:1,components:{"" minecraft:custom_model_data"":1,""minecraft:entity_data"":{id:"" minecraft:armor_stand""}}}}"
     wait 2 ticks
     play sound "block.ender_chest.open" at volume 2 at pitch 1 to player
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply speed to player for 20 seconds
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply invisibility to player for 20 seconds
     wait 2 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:gldragon_breath ~ ~1 ~"
     wait 8 seconds
     execute console command "execute at %player% run kill @e[type=minecraft:item_display]"
     set {EquipShard::%player's uuid%.hidden.lastUsed} to now
     send action bar "🎭 Power is Drained" to player
#

there

ebon ice
#

can you surround it in ```s please

steel pawn
#

if difference between now and {EquipShard::%player's uuid%.hidden.lastUsed} is less than 25 seconds: # this is the hidden ability
{EquipShard::%player%.cooldowntime} is 0
send action bar "🎭 Power is Drained" to player
set {EquipShard::%player%.cooldowntime} to 1
wait 25 seconds
send action bar "🎭 Power is Full" to player
set {EquipShard::%player%.cooldowntime} to 0
else:

     #player is sneaking 
     {EquipShard::%player%.shards} is 5

** execute console command "execute at %player% run summon item_display at %player% {Glowing:1b,view_range:100f,shadow_radius:1f,item:{id:"" minecraft:armor_stand"",count:1,components:{"" minecraft:custom_model_data"":1,""minecraft:entity_data"":{id:"" minecraft:armor_stand""}}}}"**
wait 2 ticks
play sound "block.ender_chest.open" at volume 2 at pitch 1 to player
execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
wait 1 tick
execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
apply speed to player for 20 seconds
wait 1 tick
execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
apply invisibility to player for 20 seconds
wait 2 tick
execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
wait 1 tick
execute console command "execute at %player% run particle minecraft:gldragon_breath ~ ~1 ~"
wait 8 seconds
execute console command "execute at %player% run kill @e[type=minecraft:item_display]"
set {EquipShard::%player's uuid%.hidden.lastUsed} to now
send action bar "🎭 Power is Drained" to player

#

the bold is what needs fixing

ebon ice
#

Use:

set {_item} to minecraft:armor_stand
set custom model data of {_item} to 1

spawn an item display at player:
    set the display item of the display to {_item}
    set glowing of the display to true

#... Particle spawning code here

kill last spawned display entity
#

probably a more concise way of doing that but you get the point

bleak flower
#

please dont use console commands

#

use skript to display particles (via skbee or skript-particle)

steel pawn
ebon ice
#

take a guess

steel pawn
#

if difference between now and {EquipShard::%player's uuid%.hidden.lastUsed} is less than 25 seconds: # this is the hidden ability
{EquipShard::%player%.cooldowntime} is 0
send action bar "🎭 Power is Drained" to player
set {EquipShard::%player%.cooldowntime} to 1
wait 25 seconds
send action bar "🎭 Power is Full" to player
set {EquipShard::%player%.cooldowntime} to 0
else:

     #player is sneaking 
     {EquipShard::%player%.shards} is 5
     set {_item} to minecraft:armor_stand
     set custom model data of {_item} to 1

     spawn an item display at player:
     set the display item of the display to {_item}
     set glowing of the display to true
     wait 2 ticks
     play sound "block.ender_chest.open" at volume 2 at pitch 1 to player
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply speed to player for 20 seconds
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply invisibility to player for 20 seconds
     wait 2 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:gldragon_breath ~ ~1 ~"
     wait 8 seconds
     kill last spawned display entity
     set {EquipShard::%player's uuid%.hidden.lastUsed} to now
     send action bar "🎭 Power is Drained" to player
#

like this?

ebon ice
#

well

#

with proper indentation yes

steel pawn
#

kk lmme check it rq

ebon ice
#

not indented correctly

steel pawn
#

well where do i indent it then? cuz everywhere else i try to indent it to it gives errors and says it has to be there

#

nvm, i moved it backwards 3

#

and it gave no error

#

but still wont summon the display

ebon ice
#

You sure your model is made correctly

steel pawn
#

yep

ebon ice
#

It summons for me

steel pawn
#

works when summoned with commands

ebon ice
steel pawn
#

this is summoned with commands:

ebon ice
#

dunno then

#

it summons for me

#

does everything else work

#

like the particles and stuff

steel pawn
#

yep

ebon ice
#

beats me

steel pawn
#

idk whats going on with it, it should be spawning??

#

like are you sure theres nothing else to try?

#

its not even saying anything in console

#

im just gonna sleep on it, maybe sum1 will hop in the post and have the answer to why it wont work. ill post the skript 1 last time

#

if difference between now and {EquipShard::%player's uuid%.hidden.lastUsed} is less than 25 seconds:
{EquipShard::%player%.cooldowntime} is 0
send action bar "🎭 Power is Drained" to player
set {EquipShard::%player%.cooldowntime} to 1
wait 25 seconds
send action bar "🎭 Power is Full" to player
set {EquipShard::%player%.cooldowntime} to 0
else:

     #player is sneaking 
     {EquipShard::%player%.shards} is 5
     set {_item} to minecraft:armor_stand
     set custom model data of {_item} to 1

     spawn an item display at player:
     set the display item of the display to {_item}
     set glowing of the display to true
     wait 2 ticks
     play sound "block.ender_chest.open" at volume 2 at pitch 1 to player
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply speed to player for 20 seconds
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply invisibility to player for 20 seconds
     wait 2 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~1 ~"
     wait 8 seconds
     kill last spawned display entity
     set {EquipShard::%player's uuid%.hidden.lastUsed} to now
     send action bar "🎭 Power is Drained" to player
bleak flower
#

please

graceful jackalBOT
#

x8ight suggests that you read this embed

Formatting Code In Discord
Why?

Code blocks make it easier for helpers to identify potential errors -- help them help you!

The Format

```vb
on chat:
broadcast "This is how you format code!"
```

How It Looks
on chat:
    broadcast "This is how you format code!"
Extra Info

On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard

bleak flower
#

and also use skript's particle effects

#
steel pawn
#

so no help at all?

steel pawn
real valley
#

Use the effects skbee has to modify display entities

steel pawn
#

but im not tryna use skbee

real valley
ashen sphinx
#

bro just install skbee its probably the most used and best skript plugin

#

bitch ass

#

dont make a post asking for help if you arent even gonna take any

ebon ice
#

πŸ‘†

hallow axle
#

wtf is wrong with you

grave sparrow
#

Treating skbee like its gonna murder his family

steel pawn
#

I have skbee, im just not sure how to use it is all. all I know how to do with it is crafting, everything else makes no sense even with help

steel pawn
#

you lit said that it works for you, so thats good enough? like what?

ebon ice
#

Would you like me to will the solution into existence for you

icy latch
# steel pawn I have skbee, im just not sure how to use it is all. all I know how to do with i...

Skbee will just make it so you can do more stuff with skript, try using this to spawn the display entity https://skripthub.net/docs/?id=11371 then look at similar documentation on display entities using skbee

steel pawn
ebon ice
#

Same way I've already told you

icy latch
icy latch
ebon ice
#

@steel pawn have you tried spawning a different item besides the armor stand, one that doesn't have any sort of changed texture in your pack

#

I would try that rq and see if it shows up

steel pawn
#

k, rn im trying to figure out how to implement the skbee skript into mine, idk where to hve it

icy latch
steel pawn
#

now we need custom model data

ebon ice
#

Use the code I sent before to do that

steel pawn
#

well the glowing doesnt work from b4

#

aswell

ebon ice
#

If the glowing code is placed before the code that spawns your display, it will not work

#

Because it has no entity to point to

steel pawn
#

it is after is

icy latch
#

Can you send it?

steel pawn
#

sure

icy latch
#

Please send it in a code block

ebon ice
#

Use set glowing of last spawned display entity to true

steel pawn
#

`if difference between now and {EquipShard::%player's uuid%.hidden.lastUsed} is less than 25 seconds:
{EquipShard::%player%.cooldowntime} is 0
send action bar "🎭 Power is Drained" to player
set {EquipShard::%player%.cooldowntime} to 1
wait 25 seconds
send action bar "🎭 Power is Full" to player
set {EquipShard::%player%.cooldowntime} to 0
else:

     #player is sneaking 
     {EquipShard::%player%.shards} is 5

     spawn item display at player
     set display item of last spawned entity to armor_stand
     set glowing of the display to true
     set custom model data of {_item} to 1
     wait 2 ticks
     play sound "block.ender_chest.open" at volume 2 at pitch 1 to player
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply speed to player for 20 seconds
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply invisibility to player for 20 seconds
     wait 2 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~1 ~"
     wait 8 seconds
     kill last spawned display entity
     set {EquipShard::%player's uuid%.hidden.lastUsed} to now
     send action bar "🎭 Power is Drained" to player`
ebon ice
#

The last one referred to the entity in the vanilla skript display entity block

ebon ice
steel pawn
ebon ice
#

Is the model data working

steel pawn
ebon ice
#

I'm fairly certain that's an issue with the model then

steel pawn
#

i tired last spawned with model data, i tried display. nothing seems to work, it always says "cant understand"

ebon ice
#

If the armor stand showed up without a model applied idk any other explanation

#

Just use the model data code that I had

icy latch
#

I would also recommend doing this when setting properties of a display entity

Spawn item display at player:
Set display item of entity to diamond sword

I am on phone so I don’t know if I can use code blocks but it’s just a good way to formate it

steel pawn
ebon ice
#

Mm no

#

The entity itself has no model data, it's the item it's displaying

#

So you have to set the item the display is displaying to an item with modeldata

icy latch
#

You can use just set the display item of to a armor stand with custom model data 1

steel pawn
#

shii

#

awesome!

icy latch
#

Great

steel pawn
#

wait but how to i make it

icy latch
#

Your going to have to spawn it a block above and without pitch

#

Your trying to spawn it exactly at the player right?

steel pawn
#

so that it doesn't rotate to where i look, and just rotates in the direction im looking. (i typed that weird) i mean like its pointing the face up when i just want it to be up right but looking staight forwards where i look, not up or down

steel pawn
#

i guesss???

ebon ice
#

There is an skbee expression for that!

steel pawn
#

just like, i dont want it to turn like this:

ebon ice
#

I would try looking up "billboard" on the docs

icy latch
#

I think they just want the yaw to be the same and not the pitch

steel pawn
#

if im looking down at the ground, i dont want it to look down too, i just want it to point in the direction im looking, so when i look down. it would still look up but in the direction im looking, if yk what i mean

icy latch
#

Yeah

steel pawn
#

like if i look down, it still points my way but not down, like this

icy latch
#

So if you do that the entire model will look down, is that what you want?

steel pawn
#

nahhhh

icy latch
#

Ok so right now it’s not looking down or up and only straight? Or it is looking up and down?

steel pawn
#

here, if i look down and use it, it spawns looking down. i want it so that even if i look down or up, it only faces the direction i point

icy latch
#

Ah

#

You want to set the location of the player to a variable and set the pitch of that variable to 0 then spawn the display at the variable

steel pawn
#

that makes no sense, im sorry 😭 πŸ™ ^

icy latch
#

I am on phone right now so I can really write the code but I can try to explain it a bit better

#

Before spawning the display entity set a variable to the players location then on the next line set the pitch of that variable to 0 so if your variable is {_test} then it would be set {_test}’s pitch to 0 and then instead of spawning the display at the player spawn it at the variable so in this instance you would do spawn item display at {_test}

steel pawn
icy latch
steel pawn
#

do you guys know how to spawn particle spheres, bc they aitn working for me set {_shape} to sphere with radius 3

icy latch
#
set {_loc} to location above player
set {_loc}'s pitch to 0
spawn item display at {_loc}

this should work for setting up the location and spawning the display there

steel pawn
icy latch
#
draw the shape (sphere with radius 1) at player's location
#

this is from the documentation https://skripthub.net/docs/?id=9449

icy latch
steel pawn
icy latch
#

where ever you are creating the particles

#

that one line will create the particle sphere

steel pawn
#

should i still use the console command for the particles?

icy latch
#

no

#

you most likely will never need to use console commands for particles

steel pawn
#

so what do i use to summon them?

icy latch
#

the draw part of it does that

steel pawn
icy latch
#

draw the shape (sphere with radius 1) at player try that

#
draw the shape (sphere with radius 1) at player
#

and if it gives a error send the full event

steel pawn
#

i have to work on stuff for 30 min, ill lyk if it works whn i come back

icy latch
#

ok

#

please ping me when you do

steel pawn
#

@icy latch

#

` if difference between now and {EquipShard::%player's uuid%.hidden.lastUsed} is less than 25 seconds:
{EquipShard::%player%.cooldowntime} is 0
send action bar "🎭 Power is Drained" to player
set {EquipShard::%player%.cooldowntime} to 1
wait 25 seconds
send action bar "🎭 Power is Full" to player
set {EquipShard::%player%.cooldowntime} to 0
else:

     #player is sneaking 
     {EquipShard::%player%.shards} is 5
     set {EquipShard::%player's uuid%.hidden.lastUsed} to now

     set {_loc} to location above player
     set {_loc}'s pitch to 0
     spawn item display at {_loc}
     set display item of last spawned entity to armor_stand with custom model data 1
     set glowing of last spawned display entity to true
     draw the shape (sphere with radius 1) at player
     wait 2 ticks
     play sound "block.ender_chest.open" at volume 2 at pitch 1 to player
     play sound "block.amethyst_cluster.break" at volume 2 at pitch 1 to player
     push the player forwards at speed 1
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply speed to player for 20 seconds
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply invisibility to player for 20 seconds
     wait 2 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~1 ~"
     wait 8 seconds
     kill last spawned display entity
     send action bar "🎭 Power is Drained" to player`
bleak flower
#

do you... have skript-particle?

steel pawn
#

no? wernt u just saying use skbee for particle

bleak flower
#

for playing a single particle, like you are using console commands for right now. You'd need to integrate shapes by playing a whole bunch of single particles.
skript-particle does the shapes for you

#

the line draw the shape (sphere with radius 1) at player is skript-particle syntax

steel pawn
#

ahh

icy latch
#

Oh sorry I didn’t realize you did not have skript-particles

steel pawn
#

is there a link to skript particle i could use?

#

also how do i choose the particle after i have the plugin-addon?

icy latch
#

If you go to the documentation I sent for drawing shapes with it and click on the name. It should lead you to the GitHub.

icy latch
steel pawn
#

its restarting

#

kay

#

it spawns

#

but it is under me

#

and its flame particles

bleak flower
#

mhmm

#

because player's location is the same as their feet

steel pawn
bleak flower
#

you change the location you play the shape at.

steel pawn
#

now what about the prticle

bleak flower
#

set particle of ...

#

you really should check the docs/wikis

steel pawn
steel pawn
#

`if difference between now and {EquipShard::%player's uuid%.hidden.lastUsed} is less than 25 seconds:
{EquipShard::%player%.cooldowntime} is 0
send action bar "🎭 Power is Drained" to player
set {EquipShard::%player%.cooldowntime} to 1
wait 25 seconds
send action bar "🎭 Power is Full" to player
set {EquipShard::%player%.cooldowntime} to 0
else:

     #player is sneaking 
     {EquipShard::%player%.shards} is 5
     set {EquipShard::%player's uuid%.hidden.lastUsed} to now

     set {_loc} to location above player
     set {_loc}'s pitch to 0
     spawn item display at {_loc}
     draw the shape (sphere with radius 1) at {_loc}
     set {_shape}'s particle to dragon breath
     set display item of last spawned entity to armor_stand with custom model data 1
     set glowing of last spawned display entity to true
     wait 2 ticks
     play sound "block.ender_chest.open" at volume 2 at pitch 1 to player
     play sound "block.amethyst_cluster.break" at volume 2 at pitch 1 to player
     push the player forwards at speed 1
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply speed to player for 20 seconds
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     apply invisibility to player for 20 seconds
     wait 2 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~ ~"
     wait 1 tick
     execute console command "execute at %player% run particle minecraft:dragon_breath ~ ~1 ~"
     wait 8 seconds
     kill last spawned display entity
     send action bar "🎭 Power is Drained" to player`
#

it says 0 errors again, but wont change the paricle

#

particle*

#

(set shapes particle to dragons breath is the line i used)

bleak flower
#

well uh you havent actually definted that local variable as a shape, and you arent playing the variable

#

and you need to set the particle before playing it...

steel pawn
#

what?

#

😭 made 0 sense

ebon ice
#

I'll be on in a second and see if I can work smth out

steel pawn
#

?

faint grotto
#

console commands for particles πŸ’€

bleak flower
#

You cant set the particle of the variable {_shape} if the variable doesnt exist in the first place

#

And what use is setting the particle after already showing the shape?

bleak flower
weak drift
#

set pitch of {_stand} to 0

#

makes iy ststight iiirc

weak drift
sullen dawn
graceful jackalBOT
#

connorofdeth suggests that you read this embed

Formatting Code In Discord
Why?

Code blocks make it easier for helpers to identify potential errors -- help them help you!

The Format

```vb
on chat:
broadcast "This is how you format code!"
```

How It Looks
on chat:
    broadcast "This is how you format code!"
Extra Info

On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard

sullen dawn
#

do this

steel pawn
#

we already fixed everything except for the type of particle that gets shown for the circle