#Block Data of Block Display not rendering/loading?

1 messages ยท Page 1 of 1 (latest)

rare trout
#

idk wgy

#

anyway

drifting canopy
rare trout
#

why my mesages gone ๐Ÿ˜ญ

#

hold up

#
    set {_name} to name of event-player's held item
    broadcast "name is %{_name}%"
    if {_name} starts with "&eTeir ":
        broadcast "name starts with Teir"
        set {_name} to name of event-player's held item
        set {_parts::*} to {_name} split at " "
        set {_tier} to {_parts::2} parsed as integer
        broadcast "Tier is %{_tier}%"
        if {_tier} >= 1 and {_tier} <= 33:
            broadcast "Teir is valid (%{_tier}%)"
            set {_type} to {_teirBlocks::%{_tier}%}
            broadcast "%{_type}%"
            spawn block display at location of event-block:
                set block data of event-entity to {_type}```
#

yay

#

this line

broadcast "%{_type}%"

drifting canopy
#

you can just use player instead of event-player

rare trout
#

send "stone" for example

drifting canopy
#

so what exactly isn't working?

rare trout
#

like

drifting canopy
#

you don't set a block display's block using block data

rare trout
#

so how come set block data of event-entity to stone works..?

#

and if i am doing it wrong, how else would I do it?

#

:)

drifting canopy
#

oh interesting

rare trout
#

basically when i try and pull from a variable, it just doesnt like it

#

and i have 0 clue how to do it in any other way

#

besides hardcoding it of course (i refuse to do)

drifting canopy
#

{_teirBlocks::%{_tier}%} isn't set to anything

rare trout
#

it.. is?

#

set {_type} to {_teirBlocks::%{_tier}%}

#

wait

drifting canopy
#

that isn't setting teirBlocks

rare trout
#

oh list is gone

#

set {_teirBlocks::*} to white_concrete_powder, white_concrete, white_glazed_terracotta, red_concrete_powder, red_concrete, red_glazed_terracotta, orange_concrete_powder, orange_concrete, orange_glazed_terracotta, yellow_concrete_powder, yellow_concrete, yellow_glazed_terracotta, lime_concrete_powder, lime_concrete, lime_glazed_terracotta, light_blue_concrete_powder, light_blue_concrete, light_blue_glazed_terracotta, blue_concrete_powder, blue_concrete, blue_glazed_terracotta, purple_concrete_powder, purple_concrete, purple_glazed_terracotta, magenta_concrete_powder, magenta_concrete, magenta_glazed_terracotta, pink_concrete_powder, pink_concrete, pink_glazed_terracotta

#

this is what it is

#

i just added it cuz i accidentally deleted it

#

but it still doesnt work

drifting canopy
#

skript item types don't have _ in them

rare trout
#

._.

drifting canopy
#

oh wait they can

#

show me the new code with that included

rare trout
#

i just look at skript docs and pray that what i find in examples works for me ๐Ÿ˜ญ

rare trout
# drifting canopy show me the new code with that included
    set {_name} to name of event-player's held item
    set {_teirBlocks::*} to white_concrete_powder, white_concrete, white_glazed_terracotta, red_concrete_powder, red_concrete, red_glazed_terracotta, orange_concrete_powder, orange_concrete, orange_glazed_terracotta, yellow_concrete_powder, yellow_concrete, yellow_glazed_terracotta, lime_concrete_powder, lime_concrete, lime_glazed_terracotta, light_blue_concrete_powder, light_blue_concrete, light_blue_glazed_terracotta, blue_concrete_powder, blue_concrete, blue_glazed_terracotta, purple_concrete_powder, purple_concrete, purple_glazed_terracotta, magenta_concrete_powder, magenta_concrete, magenta_glazed_terracotta, pink_concrete_powder, pink_concrete, pink_glazed_terracotta
    broadcast "name is %{_name}%"
    if {_name} starts with "&eTeir ":
        broadcast "name starts with Teir"
        set {_name} to name of event-player's held item
        set {_parts::*} to {_name} split at " "
        set {_tier} to {_parts::2} parsed as integer
        broadcast "Tier is %{_tier}%"
        if {_tier} >= 1 and {_tier} <= 33:
            broadcast "Teir is valid (%{_tier}%)"
            set {_type} to {_teirBlocks::%{_tier}%}
            broadcast "%{_type}%"
            spawn block display at location of event-block:
                set block data of event-entity to {_type}```
drifting canopy
rare trout
#

alg

#

and the broadcasts are purely debug messages

#

if it wasnt clear*

drifting canopy
#

please send me all the debug messages from chat

#

oh it has an error

rare trout
#

when the player places a generator (in my case)
it will have a value (1-33) in the name (working, coded)

{_tier} is set to this value

drifting canopy
#

when you reload, you get an error, right?

rare trout
#

no.

drifting canopy
#

hmm what skript ver are you running

rare trout
#

0 errors

#

2.12.2

#

latest im pretty sure

#

with skbee, skquery and skrayfall

drifting canopy
#

oh uninstall skquery and skrayfall

rare trout
#

that error is caused by me using skquery syntax in that

drifting canopy
#

yes I figured

#

I have a replacement for it

rare trout
#

alr ๐Ÿคทโ€โ™‚๏ธ

#

alr its gone

drifting canopy
#
on block place:
    set {_name} to name of event-player's held item
    set {_teirBlocks::*} to white_concrete_powder, white_concrete, white_glazed_terracotta, red_concrete_powder, red_concrete, red_glazed_terracotta, orange_concrete_powder, orange_concrete, orange_glazed_terracotta, yellow_concrete_powder, yellow_concrete, yellow_glazed_terracotta, lime_concrete_powder, lime_concrete, lime_glazed_terracotta, light_blue_concrete_powder, light_blue_concrete, light_blue_glazed_terracotta, blue_concrete_powder, blue_concrete, blue_glazed_terracotta, purple_concrete_powder, purple_concrete, purple_glazed_terracotta, magenta_concrete_powder, magenta_concrete, magenta_glazed_terracotta, pink_concrete_powder, pink_concrete, pink_glazed_terracotta
    broadcast "name is %{_name}%"
    if {_name} starts with "&eTeir ":
        broadcast "name starts with Teir"
        set {_name} to name of event-player's held item
        set {_parts::*} to {_name} split at " "
        set {_tier} to {_parts::2} parsed as integer
        broadcast "Tier is %{_tier}%"
        if all:
            {_tier} >= 1
            {_tier} <= 33
        then:
            broadcast "Teir is valid (%{_tier}%)"
            set {_type} to {_teirBlocks::%{_tier}%}
            broadcast "%{_type}%"
            spawn block display at location of event-block:
                set block data of event-entity to {_type}
rare trout
#

ok cool, no errors just a warning, but still the issue occurs

drifting canopy
#

ah you know what

#

figured it out

rare trout
#

;-;

#

what problem

#

i have been trying to fix this for

#

hours

#

how did it take u like 5 minutes ๐Ÿ˜ญ

drifting canopy
#

wait hold on

rare trout
#

alr

drifting canopy
#

I'm too tired to figure out like the details but I have a theory

rare trout
#

hmm?

drifting canopy
#

wait what

#

hold on

rare trout
#

no rush :)

drifting canopy
#

what the actual hell

rare trout
#

its so confusing

#

its like you litterally CANT use any variables in it

drifting canopy
#

no

rare trout
#

?

drifting canopy
#

it works on my local server

#

but not on my friend's minehut server

#

and the error is nonsensical

rare trout
#

(dont snitch but mine is local rn :P)

drifting canopy
#

this.. we.. WE HAVE THE SAME EXACT PLUGINS!!

rare trout
#

๐Ÿ’€

drifting canopy
#

I COPY PASTED IT!!

rare trout
#

WTFFF

drifting canopy
#

๐Ÿ˜ญ ๐Ÿ™

#

my local server ^

rare trout
#

send me what u got

#

my local one is what im using it on rn

drifting canopy
#
on block place:
    set {_name} to name of event-player's held item
    set {_TierBlocks::*} to white_concrete_powder, white_concrete, white_glazed_terracotta, red_concrete_powder, red_concrete, red_glazed_terracotta, orange_concrete_powder, orange_concrete, orange_glazed_terracotta, yellow_concrete_powder, yellow_concrete, yellow_glazed_terracotta, lime_concrete_powder, lime_concrete, lime_glazed_terracotta, light_blue_concrete_powder, light_blue_concrete, light_blue_glazed_terracotta, blue_concrete_powder, blue_concrete, blue_glazed_terracotta, purple_concrete_powder, purple_concrete, purple_glazed_terracotta, magenta_concrete_powder, magenta_concrete, magenta_glazed_terracotta, pink_concrete_powder, pink_concrete, pink_glazed_terracotta
    broadcast "name is %{_name}%"
    if {_name} starts with "&eTier ":
        broadcast "name starts with Tier"
        set {_name} to name of event-player's held item
        set {_parts::*} to {_name} split at " "
        set {_tier} to {_parts::2} parsed as integer
        broadcast "Tier is %{_tier}%"
        if all:
            {_tier} >= 1
            {_tier} <= 33
        then:
            broadcast "Tier is valid (%{_tier}%)"
            set {_type} to {_TierBlocks::%{_tier}%}
            broadcast "%{_type}%"
            spawn item display at location of event-block:
                set display item of last spawned item display to {_type}
rare trout
#

alr

drifting canopy
#

anyways I think it has something to do with {_type} not being a valid "block data"

#

so I made it use the display item stuff instead

#

from SkBee

rare trout
#

i have..

#

the same issue

#

that ur friends minehut server is having

drifting canopy
#

alright show me your plugins list

rare trout
#

๐Ÿ˜ญ

drifting canopy
#

oh you need SkBee

rare trout
#

o oke

#

1 sec

#

still

drifting canopy
#

wtf

rare trout
#

though this time it doesnt even spawn the block display

drifting canopy
#

send me your /skript info

rare trout
drifting canopy
#

oh no way you can't be serious ๐Ÿ’€

rare trout
#

?

#

bro boutta say i gotta get skbee 3.13.25 ๐Ÿ’€

drifting canopy
#

no

#

wait

#

hi Dj

remote pilot
#

hi

drifting canopy
#

it's either cuz ur server version or cuz ur skbee version

#

idk which one

rare trout
#

well am on 1.21.9 im pretty sure

remote pilot
#

1.21.8 should be fine

#

id suggest updating to 1.21.10

rare trout
#

1.21.9

#

i am on

remote pilot
#

that syntax doesn't work for me either

drifting canopy
#

Dj please explain why

#

it works on my 1.21.4 local server

#

I think it is the skbee version

remote pilot
#

am checking

drifting canopy
#

I have skbee 3.10.1

drifting canopy
remote pilot
#

it should of been moved into vanilla

rare trout
#

alr

drifting canopy
#

though I'm not sure that even works on 1.21.9

rare trout
#

will try that rq

drifting canopy
drifting canopy
rare trout
#

well it loaded

#

and works

#

on 1.21.9

#

so

drifting canopy
#

oh

rare trout
#

and still the error

drifting canopy
#
on block place:
    set {_name} to name of event-player's held item
    set {_TierBlocks::*} to white_concrete_powder, white_concrete, white_glazed_terracotta, red_concrete_powder, red_concrete, red_glazed_terracotta, orange_concrete_powder, orange_concrete, orange_glazed_terracotta, yellow_concrete_powder, yellow_concrete, yellow_glazed_terracotta, lime_concrete_powder, lime_concrete, lime_glazed_terracotta, light_blue_concrete_powder, light_blue_concrete, light_blue_glazed_terracotta, blue_concrete_powder, blue_concrete, blue_glazed_terracotta, purple_concrete_powder, purple_concrete, purple_glazed_terracotta, magenta_concrete_powder, magenta_concrete, magenta_glazed_terracotta, pink_concrete_powder, pink_concrete, pink_glazed_terracotta
    broadcast "name is %{_name}%"
    if {_name} starts with "&eTier ":
        broadcast "name starts with Tier"
        set {_name} to name of event-player's held item
        set {_parts::*} to {_name} split at " "
        set {_tier} to {_parts::2} parsed as integer
        broadcast "Tier is %{_tier}%"
        if all:
            {_tier} >= 1
            {_tier} <= 33
        then:
            broadcast "Tier is valid (%{_tier}%)"
            set {_type} to {_TierBlocks::%{_tier}%}
            broadcast "%{_type}%"
            spawn item display at location of event-block:
                set item of last spawned item display to {_type}
remote pilot
#
!set item of nearest entity to player's held item```
rare trout
#

:O

remote pilot
#

was moved into vanilla syntax

rare trout
#

so..

#

the error is gone

#

but

#

no block entity

drifting canopy
#

it should be inside of the block

remote pilot
#

oh its block display

rare trout
#

my block is glass

#

and there is no block

drifting canopy
#

??

remote pilot
#
!set blockdata of nearest entity to minecraft:stone```
drifting canopy
#

I just tested it on my friend's minehut server and it works

remote pilot
rare trout
#

u wanna join my local server rq?

remote pilot
drifting canopy
rare trout
#

yeah

#

port forwarding is a thing

remote pilot
#

hop on my server its localhost:8080

rare trout
#

i have a domain and all

drifting canopy
#

it's okay, I have become one with my internet

#

I am now a sentient AI

rare trout
#

๐Ÿคทโ€โ™‚๏ธ

remote pilot
#

what issue are you having now anyway?

drifting canopy
#

^

rare trout
#

there is

#

no block display

remote pilot
#

show code any error whats debugging tell you?

drifting canopy
#

brb

rare trout
#

no errors, just list warnm

remote pilot
#

can u send full code rq

rare trout
#
    set {_name} to name of event-player's held item
    set {_TierBlocks::*} to white_concrete_powder, white_concrete, white_glazed_terracotta, red_concrete_powder, red_concrete, red_glazed_terracotta, orange_concrete_powder, orange_concrete, orange_glazed_terracotta, yellow_concrete_powder, yellow_concrete, yellow_glazed_terracotta, lime_concrete_powder, lime_concrete, lime_glazed_terracotta, light_blue_concrete_powder, light_blue_concrete, light_blue_glazed_terracotta, blue_concrete_powder, blue_concrete, blue_glazed_terracotta, purple_concrete_powder, purple_concrete, purple_glazed_terracotta, magenta_concrete_powder, magenta_concrete, magenta_glazed_terracotta, pink_concrete_powder, pink_concrete, pink_glazed_terracotta
    broadcast "name is %{_name}%"
    if {_name} starts with "&eTier ":
        broadcast "name starts with Tier"
        set {_name} to name of event-player's held item
        set {_parts::*} to {_name} split at " "
        set {_tier} to {_parts::2} parsed as integer
        broadcast "Tier is %{_tier}%"
        if all:
            {_tier} >= 1
            {_tier} <= 33
        then:
            broadcast "Tier is valid (%{_tier}%)"
            set {_type} to {_TierBlocks::%{_tier}%}
            broadcast "%{_type}%"
            spawn item display at location of event-block:
                set item of last spawned item display to {_type}```
remote pilot
#

and what debugging shows

rare trout
#

debugging?

remote pilot
#
                set item of last spawned item display to {_type}```
->
```v
  set item of entity to {_type}```
rare trout
#

wdym?

remote pilot
#

your using a section to spawn it you shouldn't be using last spawned x

#
set item of last spawned item display to {_type}``` should use entity not last spawned item display
#

or remove the part where this is a section

            spawn item display at location of event-block:
rare trout
#

so this?

    set {_name} to name of event-player's held item
    set {_TierBlocks::*} to white_concrete_powder, white_concrete, white_glazed_terracotta, red_concrete_powder, red_concrete, red_glazed_terracotta, orange_concrete_powder, orange_concrete, orange_glazed_terracotta, yellow_concrete_powder, yellow_concrete, yellow_glazed_terracotta, lime_concrete_powder, lime_concrete, lime_glazed_terracotta, light_blue_concrete_powder, light_blue_concrete, light_blue_glazed_terracotta, blue_concrete_powder, blue_concrete, blue_glazed_terracotta, purple_concrete_powder, purple_concrete, purple_glazed_terracotta, magenta_concrete_powder, magenta_concrete, magenta_glazed_terracotta, pink_concrete_powder, pink_concrete, pink_glazed_terracotta
    broadcast "name is %{_name}%"
    if {_name} starts with "&eTier ":
        broadcast "name starts with Tier"
        set {_name} to name of event-player's held item
        set {_parts::*} to {_name} split at " "
        set {_tier} to {_parts::2} parsed as integer
        broadcast "Tier is %{_tier}%"
        if all:
            {_tier} >= 1
            {_tier} <= 33
        then:
            broadcast "Tier is valid (%{_tier}%)"
            set {_type} to {_TierBlocks::%{_tier}%}
            broadcast "%{_type}%"
            spawn item display at location of event-block:
                set item of entity to {_type}```
remote pilot
#

try it

drifting canopy
#

yeah

rare trout
#

nothin

#

keep in mind, its not even spawning the block display

drifting canopy
#

add a broadcast entity at the bottom

remote pilot
#

and what does %{_type}% show?

#

also why use v if all

#
if {_tier} is between 1 and 33:```
drifting canopy
#

what

remote pilot
#
        if all:
            {_tier} >= 1
            {_tier} <= 33
        then:``` this for a range check
rare trout
#
        if all:
            {_tier} >= 1
            {_tier} <= 33
        then:
            broadcast "Tier is valid (%{_tier}%)"
            set {_type} to {_TierBlocks::%{_tier}%}
            broadcast "%{_type}%"
            spawn block display at location of event-block:
                set block data of entity to {_type}```
#

the teir is %teir% broadcasts fine

#

the type one doesnt

remote pilot
#

and the type?

rare trout
#

it just doesnt run

drifting canopy
#

sorry my brain isn't working I'll just leave you two to it

#

I'm gonna get in bed

rare trout
#

mine isnt either

#

;-;

#

its 12am

remote pilot
#

code works for me

rare trout
#

this the same as urs?

drifting canopy
remote pilot
drifting canopy
remote pilot
#

skript 2.13.1

rare trout
#

kk

remote pilot
#

are we even using skbee here?

drifting canopy
#

I'm not sure but I doubt they want skbee v3.10.1

rare trout
#

alr i got 2.13.1

#

still nothiung

drifting canopy
#

yeah gimme your server IP

rare trout
#

the valid message isnt sending

remote pilot
#

what game version are you on?

drifting canopy
#

oh wait actually don't give me it, I don't feel like switching versions

remote pilot
rare trout
#

it doesnt send

remote pilot
#

and is there an error in console

rare trout
#

no

#

hold up

remote pilot
#

show me your item name

rare trout
#

yes?

#

im using "&eTeir 5 Generator"

remote pilot
rare trout
#

since your splitting into 2 parts

remote pilot
#

Teir

rare trout
#

sh

#

anyway

remote pilot
#

Teir != Tier

rare trout
#

wouldnt splitting it into 2 parts

#

wait

#

holy jeses

#

jesus

drifting canopy
#

oh yeah my bad

#

I spell checked and replaced Teir with Tier

remote pilot
#

and this is why we use nbt

#
command /test:
    trigger:
        give player 1 of stone with custom nbt from "{IsAwesome:1D}"
        
on right click with stone:
    set {_isAwesome} to double tag "IsAwesome" of custom nbt of player's held item 
    if {_isAwesome} = 1:
        broadcast "tis awesome"```
drifting canopy
#

and this is why we use variables

remote pilot
#

i do prefer vars with nbt as well incase it fails to match if you wanna update stuff

rare trout
#

ok uh

#

so its now doing stuff

#

test that?

remote pilot
drifting canopy
rare trout
drifting canopy
remote pilot
#
on load:
    set {_item} to stone named "Hello World"
    RegisterItem("Test", {_item})

function RegisterItem(s: string, i: item):
    set {Items::%{_s}%} to {_i}

function GetItem(s: string):
    return {Items::%{_s}%} with nbt from "{Index:%{_s}%}"```
rare trout
#

well now we making progress cuz im stupid :D

#

and this time

#

theres accually an entity

#

just cant see anything

remote pilot
#

if you sent the debugging the first time we'd of solved this in like 10s .-.

#

send code

drifting canopy
#

use item not block data please

rare trout
remote pilot
drifting canopy
#

item display > block display

remote pilot
#

block display > item display

drifting canopy
#

how so

rare trout
#

:O

#

hol up

remote pilot
#

idk is there even much difference

rare trout
#

hAPPY DAYS

drifting canopy
#

item displays don't use yucky block data

#

it uses proper item types

rare trout
#

._.

remote pilot
#

blockdata is fine

rare trout
#

well block data doesnt work

#

-_-

remote pilot
rare trout
#

..

#

welp im tweaking

#

thx guys :D

#

1 last thing

#

how do i make it 50% scale :D

remote pilot
#
set display scale of x to vector(xScale,yScale,zScale)```
rare trout
#

uh

#

set display scale of x to vector(0.5,0.5,0.5)

#

so this?

remote pilot
#

try it

rare trout
#

._.

remote pilot
#

set the display scale of what?

rare trout
#

like

#

legit

#

shrink the entity

#

by 50%

remote pilot
#

my point was your code doesn't specify the entity

rare trout
#

?

remote pilot
#

you just sent code that doesn't use the syntax i sent...

rare trout
#

oh

drifting canopy
#

it was a rhetorical question lol

rare trout
rare trout
#

i am loosing my mind

drifting canopy
#

what's x

rare trout
#

;-;

rare trout