[SPIGOT-14] Addition of setDisplayBlock for minecarts (including rideable ones) Created: 28/Nov/14  Updated: 12/Dec/14  Resolved: 12/Dec/14

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

Type: New Feature Priority: Minor
Reporter: Eddie Brown Assignee: Unassigned
Resolution: Fixed Votes: 6
Labels: None
Environment:

N/A



 Description   

For a while now minecraft has let players set custom display blocks (not just hopper, tnt and furnaces) in minecarts using NBTEdit or MCEdit, etc... This was possible to do from a plugin in craftbukkit 1.7 using NMS code; but should be trivial to implement as part of the API. There should be:

minecart.setDisplayBlock(...)
minecart.getDisplayBlock() (returning item stack probably)
minecart.clearDisplayBlock()

Thank you



 Comments   
Comment by FearThe1337 [ 12/Dec/14 ]

added, see https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/commits/ae75cc39bcc146ce492982ce701efc87bb3bb643

Comment by Z750 [ 11/Dec/14 ]

Limitation of Atlassian, we're hoping to get that changed soon

There are instructions for getting stash access on the 1.8 announcement post.

Comment by Eddie Brown [ 10/Dec/14 ]

Why do PRs require an account on stash to view? How can I get an account?

Comment by Eddie Brown [ 10/Dec/14 ]

Yay, thank you <3

Comment by FearThe1337 [ 10/Dec/14 ]

Since no news about implementation, I implemented it and creates the following 2 PR's

Bukkit 15
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/15/overview
CraftBukkit 41
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/41/overview

Comment by Janmm14 [ 08/Dec/14 ]

i would remove the clearDisplayBlock method and allow setDisplayBlock's param to be null or an air item stack

Comment by Eddie Brown [ 08/Dec/14 ]

Any progress on this?

Comment by Whalerus [ 01/Dec/14 ]

K

Comment by Eddie Brown [ 30/Nov/14 ]

Oh also don't forget setDisplayBlockOffset(...) and getDisplayBlockOffset(), this allows the block to be elevated or lowered inside the minecart.

Comment by Whalerus [ 29/Nov/14 ]

Already working on this
Should be easy

Generated at Sat Dec 13 16:35:01 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.