[SPIGOT-3082] Missing material data api Created: 22/Feb/17  Updated: 17/Jul/18  Resolved: 17/Jul/18

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Martin | MiniDigger Assignee: Unassigned
Resolution: Won't Fix Votes: 2
Labels: None


 Description   

I was so bored today that I went thru spigot and pr #224 and listed everything block data there is and checked if it is covered by spigot or that pr.

I think, moving forward, its important to cover everything minecraft offers, in a timely manner.

too many ppl got used to using the deprecated, magic value, methods now. expanding the api could also make the transition to 1.12 way more smooth since ppl could adopt their plugins before 1.12 even lands.

wip-note: I got tired for now, will do the rest later. if anybody finds something else missing, just comment below. it also seems that I fixed some TE in there (did most stuff by memory), so that stuff needs to cleaned up too.

Wood Planks: in spigot
- wood type
Stone: covered by #224
- stone type
Dirt: covered by #224
- dirt type
Saplings:
- wood type in spigot
- grow counter kinda covered by #isInstaGrowable
Water/Lava: missing
- fluid level
- is falling (only spreads downwards)
Sand: covered by #224
- sand type (red and normal)
Wood: 
- wood type in spigot
- direction missing
Leaves: in spigot
- wood type 
- decay state 
Wool, Stained Clay, Stained Glass and Carpet: wool: in spigot, stained stuff: in #224, carped: missing
- color
Torch, Redstone Torch: in spigot
- facing
Slaps(Step): in spigot
- right-side-up or upside-down or double slab
- material?
Fire: missing
- fire tick
Sandstone and Red Sandstone: in spigot
- sandstone type
Beds: 
- direction in spigot
- foot or head in spigot
- empty or occupied missing
Grass: missing
- grass type
Flowers: in #224
- flower type
Large Flowers: in #224
- large flower types
Piston: in spigot
- direction
- extended
Piston Extension: in spigot
- sticky
- direction
Stairs: in spigot
- direction
- upside down
Redstone Wire: only ispowered in spigot
- power level
Daylight Sensor: missing
- power level
Crops: in spigot
- growth level
Farmland: missing
- wetness
Banner (standing and wall):
- direction in spigot
- base color missing? 
- patterns (with color and pattern each) missing? 
Beacon: missing
- locked
- level
- primary effect
- secondary effect
Door: in spigot
- top or bottom
- hinge left or right
- open or closed
- direction
Rail: in spigot
- direction and stuff
Special Rails: in spigot
- direction
- active
Ladder: in spigot
- direction
Furnance: class is in spigot, not actual api tho, some stuff in block class
- custom name
- locked
- items
- burn time
- cook time
- cook time total
Chest and Trapped Chest: class is in spigot, not actual api tho, some stuff in block class
- direction
- locked
- custom name
- items
- loot table and seed
Sign: direction is there, nothing else, some stuff in block class
- text
- direction
- some command stats stuff, like command block
Dispenser, Dropper and Hopper:
- direction
- activated
- custom name
- lock
- items
- loot table and seed
Pressure Plates:
- active
Buttons:
- direction
- active
Snow:
- hight
Cactus and Sugar Cane:
- growth level
Jukebox:
- has disk
- record and record item
Pumpkins and Jock o Lanterns:
- direction
- has face
Cake:
- pieces eaten
Repeater:
- direction
- delay
Comparator:
- direction
- substraction mode
- powered
- output power
Trapdoors:
- direction
- open
- top or bottom
Monster Egg:
- stone brick type
Prismarine:
- prismarine type
Sponge:
- wet
Brown and Red mushroom blocks:
- multiple textures
Pumpkin and melon stem
- growth level
Vines:
- direction
Fence Gates:
- direction
- open or closed
Nether Wart:
- growth level
Brewing Stand:
- direction
- locked
- items
- brew time
- fuel
Cauldron:
- water level
- custom color
- items
- potion id
- splash potion
- is moveable
End Portal Frame:
- direction
- has eye
Coccoa:
- direction
- growth level
Tripwire Hook:
- direction
- connected
- activated
Tripwire:
- activated
- attached
- disarmed
Cobblestone Walls:
- cobblestone type
Flower Pots:
- material and material data? Item? 
Heads/Skulls:
- direction
- on floor or wall
- type
- owner (id, name, texture)
Quartz Block:
- type
Coal:
- charcoal
Dyes:
- color
Fish:
- fish type
Anvil:
- damage level
- direction
Observer:
- direction
Potions:
- effect
- splash potion
- duration
- tier
Maps:
- id
- scale
- location
Golden Apple:
- enchanted
Structure Block:
- type
- name
- author
- metadata
- pos of the structure
- size of the structure
- rotation
- mirror
- mode
- ignore entities
Chorus Flower:
- growth
End Rod:
- direction
Command Block:
- custom name
- stats
- command
- success count
- last output
- track output
- powered
- auto
- condition met
Enchanting Table:
- custom name
End Gateway:
- age
- exact teleport
- exit portal
Mob Spawner:
- way too much stuff to list here
Noteblock:
- note
- powered


 Comments   
Comment by Black Hole [ 17/Jul/18 ]

MaterialData is now deprecated in 1.13 and replaced with BlockData.

Comment by md_5 [ 17/Nov/17 ]

I think you've really confused this issue. A significant amount of things you have listed are a) not data values and b) already implemented.

Take for example Sign text, it's definitely not a data value, and you can definitely set sign text via the API.

Comment by blablubbabc [ 14/Apr/17 ]

Items of flower pots: Those are actually handled by BlockState now, instead of MaterialData So that can be removed form the list.

Comment by pokechu22 [ 27/Feb/17 ]

There's also TNT, which has a single metadata field that's really esoteric (punching the TNT causes it to explode instead of dropping).  I submitted a PR with a fix for that (along with another issue) a while ago; might want to include that in the list.

Comment by Martin | MiniDigger [ 22/Feb/17 ]

seems like jira broke the formatting (I used a fucking pre block, what else do you want?...), looks better on hastebin https://hasteb.in/okusexuwah.vhdl
(for some reason I can't edit this issue)

Generated at Mon Dec 15 03:34:38 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.