This commit is contained in:
parent
72f5f6509b
commit
38f16baa75
@ -48,7 +48,7 @@ public class CreativeURLOpenerBlock extends DirectionalBlock {
|
||||
pagesList = new ListTag();
|
||||
}
|
||||
|
||||
String url = pagesList.getString(0);
|
||||
String url = pagesList.getString(((LecternBlockEntity) entity).getCurrentPage());
|
||||
if (stack.getItem() == Items.WRITTEN_BOOK) {
|
||||
Text urlText = Text.Serializer.fromJson(url);
|
||||
if (urlText != null) {
|
||||
|
@ -13,8 +13,8 @@
|
||||
"block.twine.glowing_obsidian.tooltip_2": "and hurts everything else",
|
||||
|
||||
"block.twine.creative_item_spawner": "Creative Item Spawner",
|
||||
"block.twine.creative_item_spawner.tooltip_1": "This block copies the items in the",
|
||||
"block.twine.creative_item_spawner.tooltip_2": "block on the §cred§r side and",
|
||||
"block.twine.creative_item_spawner.tooltip_1": "This block copies the items in",
|
||||
"block.twine.creative_item_spawner.tooltip_2": "the block on the §cred§r side and",
|
||||
"block.twine.creative_item_spawner.tooltip_3": "spawns them on the §dpurple§r side",
|
||||
|
||||
"advancements.twine.root.title": "Twine",
|
||||
@ -50,6 +50,6 @@
|
||||
"block.twine.creative_url_opener": "Creative URL Opener",
|
||||
"block.twine.creative_url_opener.tooltip_1": "If this block is facing a lectern when",
|
||||
"block.twine.creative_url_opener.tooltip_2": "used, it will prompt the user to open",
|
||||
"block.twine.creative_url_opener.tooltip_3": "the first page of the lectern's book",
|
||||
"block.twine.creative_url_opener.tooltip_3": "the current page of the lectern's book",
|
||||
"block.twine.creative_url_opener.tooltip_4": "as a URL in a web browser"
|
||||
}
|
Reference in New Issue
Block a user